Results 1 to 6 of 6

Thread: Dynamic Ajax Content - opening 2 pages at once

  1. #1
    Join Date
    May 2006
    Location
    Chester, UK
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content - opening 2 pages at once

    I was looking at this
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    Using a link like the one below
    Code:
    <a href="javascript:ajaxpage('test.php', 'mainarea');">Link Text</a>
    That works great it pulls the information from test.php into mainarea without reloading the banner and logo of the main page.

    But if I have another area 'furtherinfo' how do I fill that with details from a page called 'moredetails.php'

  2. #2
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    U have this link
    Code:
    <a href="javascript:ajaxpage('test.php', 'mainarea');">Link Text</a>
    Add this link
    Code:
    <a href="javascript:ajaxpage('test.php', 'mainarea');">Link Text</a>
    <a href="javascript:ajaxpage('moredetails.php', 'furtherinfo');">Link Text</a>
    Then add a second DIV tag to your site with an id = to furtherinfo
    Ryan
    Sevierville, TN

  3. #3
    Join Date
    May 2006
    Location
    Chester, UK
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry I was not clear in my opening post.

    What I want is a link what will do both those on one click.

  4. #4
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    Code:
    <a href="javascript:ajaxpage('test.php', 'mainarea', 'moredetails.php', 'furtherinfo');">Link Text</a>
    I believe this will do it.
    Ryan
    Sevierville, TN

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by NXArmada
    Code:
    <a href="javascript:ajaxpage('test.php', 'mainarea', 'moredetails.php', 'furtherinfo');">Link Text</a>
    I believe this will do it.
    Nope, at least not the way the script referred to at the beginning of this thread is written, if that is what is being used but, this should work:


    Code:
    <a href="javascript:ajaxpage('test.php', 'mainarea');ajaxpage('moredetails.php', 'furtherinfo');">Link Text</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    Thats right John i remember doing it but i could not remember exactly how it was down I do remember it was somewhere along that line which probably is why i tipped mine out that way.
    Ryan
    Sevierville, TN

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
  •