Results 1 to 3 of 3

Thread: Dynamic Ajax Content Script: Disabling the memory

  1. #1
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content Script: Disabling the memory

    So I am sure this is either very simple or completely impossible. I am using the script for changing the content of div's using different links. The site works by a main menu in the "banner" area changing the menu in an "index" area, and then that menu changes the content in the "display" area. The problem is that some things dont need to go in the index area or when something different loads in the index area I want the display to be empty. I accomplished this by using a few external scripts to change the content of the areas. The problem is that once the scripts have ran once, they will not run again and then I am back to square one.

    Is there a way to disable the script to not remember when it has already loaded a certain script?

    The website is www.arrabbi.com

    the script can be found at http://www.dynamicdrive.com/dynamici...tent.htm#combo

    thanks

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

    Default

    You can disable the script from not running the JavaScripts loaded after their intial run (so they run each time the content is fetched) by modifying the line:

    Code:
    loadedobjects+=file+" " //Remember this object as being already added to page
    to:

    Code:
    loadedobjects=""

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

    Default

    thank you so much, it works like a charm now, 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
  •