Results 1 to 4 of 4

Thread: Dynamic Ajax Content question

  1. #1
    Join Date
    Mar 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content question

    Dynamic Ajax Content
    http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm


    Quick Question

    When creating a link that opens in the Ajax frame, using this:

    <a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a>
    <div id="contentarea"></div>

    Is there a way to open 2 separate pages in 2 separate Ajax frames, with the same link? Is it even possible to have 2 Ajax frames on the same page?

    Thanks!

  2. #2
    Join Date
    Mar 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone?

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

    Default

    If I understand your question, you wish to use more than one DIV (ie: contentarea) to hold various Ajax content? Something like:

    Code:
    <a href="javascript:ajaxpage('test.htm', 'contentarea'); ajaxpage('test2.htm', 'contentarea2')">test</a>
    
    <div id="contentarea"></div>
    <div id="contentarea2"></div>
    Now, I haven't tested this out yet, and trying to request two ajax content at the same time may fail based on the way the script was created. Worth a shot.

  4. #4
    Join Date
    Mar 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, that looks like exactly what I'm trying to do.... I'll try it out and post if it worked.

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
  •