Results 1 to 2 of 2

Thread: Ajax load XML file script

  1. #1
    Join Date
    Aug 2005
    Posts
    115
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Ajax load XML file script

    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:

    HTML Code:
    <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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You should be able to do this just by calling the function twice:

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •