PDA

View Full Version : Dynamic ajax content and me



Jahova
04-10-2009, 11:29 AM
Hello there. I am in the process of coding a website that uses dynamicdrive's dynamic ajax content script to load my content into a certain div. (See: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm)

Upon the page load, it loads nothing into the div and the default content is shown. When clicking a link, it will load that page into the div fine, using the ajax content.

What I want now is when a person clicks a cetain link, the div will be cleared of the dynamic ajax content and the default content will be shown again. I know it sounds really picky, but it's the only way my script is going to work at the moment.

Kind regards. Tom.

Verrou
04-10-2009, 11:52 AM
I think PHP Includes is easier...

BoyBetterKnow
04-10-2009, 11:52 AM
Hello there. I am in the process of coding a website that uses dynamicdrive's dynamic ajax content script to load my content into a certain div. (See: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm)

Upon the page load, it loads nothing into the div and the default content is shown. When clicking a link, it will load that page into the div fine, using the ajax content.

What I want now is when a person clicks a cetain link, the div will be cleared of the dynamic ajax content and the default content will be shown again. I know it sounds really picky, but it's the only way my script is going to work at the moment.

Kind regards. Tom.

With jQuery you could do it so you have a hidden div and when that link is clicked, the value of the content div (that is stored in the hidden div) goes back into the content div.

Jahova
04-10-2009, 12:05 PM
Php includes, let me see.

Jahova
04-10-2009, 01:34 PM
Sorry for double post. Just wanted to notify users that I have found a work-around to my problem. Regards.

Want to hide these adverts? Register an account for free!