View Full Version : Dynamic Ajax Content Script: Disabling the memory

06-09-2006, 06:36 PM
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 (http://www.arrabbi.com)

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


06-15-2006, 07:18 AM
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:

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



06-16-2006, 10:11 PM
thank you so much, it works like a charm now, thanks