PDA

View Full Version : Unloading Ajax content



klbollwahn
09-29-2006, 06:00 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: I need a way, without refreshing the page, to unload the ajax content and redisplay the default text in the div section.

Strangeplant
09-29-2006, 07:22 PM
First you need to decide what event you are going to use to trigger the replacement by the default text.

Secondly, you need to put your default text ino a file, say default.html

Then you need to use ajax to load the default.html when the page loads and also when the restore event is triggered.

See http://www.dynamicdrive.com/forums/s...ad.php?t=13314 or http://www.dynamicdrive.com/forums/showthread.php?t=13483 for starters on how to do this.....