PDA

View Full Version : Linking to pages within the Dynamic AJAX script



messenger82
04-12-2007, 02:59 PM
1) Script Title:
Dynamic AJAX Content

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

3) Describe problem:
I really don't have any problems just more of a question.

Situation: The layout of my site a static navigation menu and static styling graphics and a dynamic content area. I use this script to dynamically load the text articles and other features of the site into a content area when someone clicks on a navigation link. It does this task well.

Problem: With the above setup I am unable to deep link within the site. Occasionally we publish newsletters where we want to point people to pages within the site. We can't do this though because the page the see has no navigation or styling. Is there a way to use this script and link to pages within the site. To give an example when you look at the demo page on dynamic drive is there a way to make a link that will direct you to the Ferrari page instead of the "choose a page to load" text?

messenger82
04-12-2007, 03:00 PM
The website is at http://www.thelearningnetwork.tv/ if anyone is interested in looking at the code.

thetestingsite
04-17-2007, 02:54 AM
Sorry for the delayed response, but in the containerdiv you could simply make a link that has this:



<a href="javascript: ajaxpage('page.html','container');">Click here for the ajax page</a>


change page.html (or the part in red above) to your page, and the part in blue (container) to the div id that you want the ajax page to load into (in this case, the same div that the above link is in).

Hope this helps.