Javascript, XML, DOM and CSS

Associate
Joined
4 Dec 2006
Posts
468
Location
Hertford/Portsmouth
Alright all, right im going to explain this stuff best as I can, its all new to me !

I am having a little issue with some uni coursework, which requires me to use an XML file, and intergrate it with javascript, so that the javascript pulls info from the XML and stick it in tables etc.

Thats where im stuck, ive used some example code and edited it to get a better understanding, but put in my info to relate it to my XML file, but nothing shows up, only the plain HTML stuff does, Ive got the XML file in the same directory as the HTML file too, but still no worky.

This whole thing just confuses me, Ive read a little on w3schools about the DOM too, but ah this stuff just isnt me !

after I got this all working, it needs to be styled using CSS, which I think I can do !

I have to upload the two files somewhere, otherwise is there one person that can lend a hand over msn this evening maybe ? would really appreciate it !
 
Using AJAX can be a little tricky to debug as the asynchronous requests don't always result in an error message to the browser which you can work with. If you aren't already, try using the Firebug extension for Firefox as this will at least give you an indication of where your problem is.

Also if you're allowed to try using jQuery for retrieving your XML as it's basically a 1-liner - more info
 
I was about to post thread about this. Basically l am in the same boat as the OP. I am making a website for a friend which was supposed to be basic but he started asking for more and more stuff since l am making the site for free :(

I got some tutorials on JQuery. Seems like it is time to study some more. So Spunkey can you draw information from an .xml file located locally or on a different server and draw information into .div layers from it. If so, it seems like jQuery will do the job finely.
 
Back
Top Bottom