Results 1 to 5 of 5

Thread: Ajax Rotating Includes Script - Can I preload a page?

  1. #1
    Join Date
    Oct 2004
    Location
    MN, USA
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Ajax Rotating Includes Script - Can I preload a page?

    In the Ajax Rotating Includes Script when you enter the page hosting this script your content area is blank, and on your example you have the text "Choose a page to load."

    Is there a way to have one of your pages display as the hosting page loads? I want people to enter my site and see these pages and then flip to other pages if they want, rather than starting out from a blank slate.

    Thanks!

  2. #2
    Join Date
    Oct 2004
    Location
    MN, USA
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool I may have figured out a way.

    I am using Frontpage, so I can set an include page for that cell and as the page loads it will have that page visible, but when the other links are chosen the cell then updates to the new page.

    I would still be interested in a better way if anyone knows of any.

    Thanks.

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

    That actually sounds like a very good way to do it.
    - John
    ________________________

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

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

    Default

    Well, the problem with using Ajax rotating includes script to preload a page is that the process isn't asynchronous, but synchronous. In other words, the browser needs to wait until the "preloaded" page is loaded before it continues to load the rest of the main page currently being viewed. The reason we made it synchronous is so that any JavaScript or CSS on the page to fetch is loaded properly as well, which asynchronous has problem doing.

    With that said then, you're better off just using a SSI includes (or some other server side inclusion method like PHP include) to prefetch a page and hiding it (ie: set visibility="hidden") until when you want to activate it. The process is synchronous as well, but faster as it's done on the server side. The AJax includes script was created for people to use on pages that don't support SSI or some other way of dynamically including a page to show.

  5. #5
    Join Date
    Oct 2004
    Location
    MN, USA
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looks like the FrontPage include is going to work ok.

    Here is a sample of what I am trying to do.

    http://www.vensland.com/for_her/index.html

    The page loads using a FrontPage include in the cell for my first selection. This is far from done, but it looks like it is going to work for what I am trying to accomplish.

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
  •