Results 1 to 5 of 5

Thread: Ajax Includes script from Iframe Help

  1. #1
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Includes script from Iframe Help

    So my old site used Iframe’s to display all my content inside my template. The problem was if the content was longer than the Iframe then I would get a scroller bar. What I wanted was the page to expand with the content. Then I found this sweet site and I think I am falling in love with JavaScript and this Dynamic website .

    So In the older version of the site I had all the different pages links load into the Iframe. I just put this Ajax Includes script in, and I am wondering if I can make different links load into the same area. Hope you get what I am saying...

    Any help would be greatly appreciated.

  2. #2
    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

    Yes. Just use the same syntax with a different url for the page than you used for the first link.

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    O sry about that
    Script: Ajax Includes script
    http://www.dynamicdrive.com/dynamici...axincludes.htm

    OK so I have my list of links
    Code:
    <a href="/news/latest.php">Blog</a><br />
      <a href="/content/Tutorials/tutorials.html">Tutorials</a><br />
      <a href="/content/Projects/projectsmain.html">Projects</a><br />
      <a herf... ext ext
    Then I have my Include thing in another div
    Code:
    <div id="content_mid">
    <script type="text/javascript">
    ajaxinclude("/news/latest.php")
    </script>
    </div>
    So my quetion is what do I do to make the links open in the include script?
    With Iframes it was
    Code:
    target="iframename"
    but how would I do this with the ajaxinclude script?

  4. #4
    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

    You need this script:

    Dynamic Ajax Content
    - John
    ________________________

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

  5. #5
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great thanks

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
  •