PDA

View Full Version : Ajax load XML file script



Spinethetic
11-14-2006, 10:53 PM
1) Script Title: Ajax load XML file script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/ajax.htm

3) Describe problem: I would like to load two seperate XML files into two different layers/divs onto the same page. I tried something like this:


<body onload="ajaxLoader('profile1.xml, profile2.xml','profile1, profile2')">
<div id="profile1"></div>
<div id="profile2"></div>
</body>

But no luck! Is there a way around this?

Best Regards
~Spine :)

ddadmin
11-15-2006, 09:07 AM
You should be able to do this just by calling the function twice:


<body onload="ajaxLoader('profile1.xml' ,'profile1'); ajaxLoader('profile2.xml' ,'profile2')">
<div id="profile1"></div> <div id="profile2"></div> </body>