PDA

View Full Version : Ajax Tab Content



curious_me
02-14-2008, 07:37 PM
1) Script Title: Dynamically selecting a tab/ loading an external page

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

3) Describe problem: Well, I am able to make my tabs. But inside my tabs I have other links and I want them to stay in that tab when you click on them instead of going to another page. Is that possible? Sorry if that has already been asked. But I have a tab that opens up to a table and each link in the table I want to open on the same page. They are all external links.

ddadmin
02-14-2008, 10:14 PM
If you mean you have links inside the content loaded by a particular tab, that when clicked on, you wish for them to load in the same content area:

1) Assuming the content is loaded via Ajax (instead of iframe), use a link such as:


<p><a href="javascript: countries.loadajaxpage('external5.htm')">Load "external5.htm" into content container via Ajax</a></p>

2) Assuming the content is loaded via IFRAME instead, then no changes to your links need to be made, as they will by default load inside the IFRAME.

curious_me
02-15-2008, 06:15 PM
thank you! that is exactly what I needed.