PDA

View Full Version : Switch Content inside Ajax Tabs Content Script



Foundas
04-12-2010, 07:47 AM
1) Script Title: Switch Content Script II (icon based)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

3) Describe problem: Hi guys, im trying to implement the above script, even the Version 1, with the Ajax Tabs Content script (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm) but it doesnt work.

The fields are not expanded. The Contract All & Expand All works, but not each individual header.

Can you please help me out on this?

Thanks in advance

ddadmin
04-13-2010, 10:02 AM
Ah this isn't an issue with the script, but rather, just a pesky limitation of Ajax. Pages fetched via Ajax should they contain JavaScripts within it in many cases won't run correctly when brought over this way. Ajax basically copies the contents of the external file similar to copying plain text and just dumps it onto the main page. Browsers don't know to interpret scripts or even CSS (in IE) within that copied content.

The easy solution in this case is just to use the IFRAME option of Ajax Tabs Content to display your contents, instead of Ajax.