Results 1 to 2 of 2

Thread: A central page for navigation and an iframe for the content without the disadvantages

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,371
    Thanks
    31
    Thanked 141 Times in 136 Posts
    Blog Entries
    32

    Default A central page for navigation and an iframe for the content without the disadvantages

    Loading all the content pages of a site in an iframe contained in a static central page which also contains the navigation menu (and things like a permanent background, a logo etc.) is a sure way to avoid screen flicker / a white flash on page transition, since what changes is not the central page, but the iframe's content. Traditionally, this solution created problems that had to do with printing the pages, bookmarking them and showing the correct url in the address bar. We can solve the bookmark problem and the problem of showing the correct url (= the iframe's url) in the address by using a script that takes advantage of the fact that we can change the value after the hash tag without provoking a reload of the (central) page. The value after the hash tag in the central page, then, corresponds with the iframe's url. As for printing the iframed (content) pages, there's an elegant way to do this from outside the iframe.
    Demo: http://mesdomaines.nu/eendracht/incl...web_templates7.
    Author: Arie Molendijk.
    EDIT:
    I found a way to make the script work with IE7 too, and fixed an issue (loading the iframed pages) with Opera and Google Chrome. The new script (the demo) can be found at http://mesdomaines.nu/eendracht/include_menu_web_templates8
    Last edited by molendijk; 09-23-2012 at 09:26 PM.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,371
    Thanks
    31
    Thanked 141 Times in 136 Posts
    Blog Entries
    32

Similar Threads

  1. Replies: 1
    Last Post: 09-22-2011, 03:36 PM
  2. How to Store/Edit/Retrieve Central Data for Free?
    By Alice Moore in forum Looking for such a script or service
    Replies: 2
    Last Post: 07-14-2010, 09:10 AM
  3. Replies: 29
    Last Post: 01-23-2008, 05:12 PM
  4. Need help configuring 3 DD scripts on same page - Daily IFrame Content
    By 1eeyore in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 03-13-2005, 02:45 PM

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
  •