Results 1 to 3 of 3

Thread: Preload external.htm content with Ajax Tabs?

  1. #1
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Preload external.htm content with Ajax Tabs?

    1) Script Title: Ajax Tabs Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tent/index.htm

    3) Describe problem: Is it possible for the contents of the external.htm pages to preload before they are clicked on? I have images on my tabs and the images take a second or two to load. I'd like for the images to preload, so that they appear instantly when the tabs are clicked on.

    Here is my site: http://www.findsoky.com

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

    Default

    There's no easy way to do this with the script as is. I don't really anticipate this being a requested feature, since part of the purpose of the script is to load content on demand and only when requested.

    You can certainly manually preload those external pages, such as by adding hidden IFRAME elements that each point to the various external pages you wish preloaded, but that's way to cumbersome I reckon.

  3. #3
    Join Date
    Dec 2007
    Location
    Maine
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool found it by accident

    I found that If you just leave out the first line:

    Code:
    <li><a href="#" rel="#default" class="selected">Tab 1</a></li>
    and leave the rest with the external pages like they are. it will load the first external page..

    hope it works for you.

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
  •