View Full Version : Complex Problem: Using 2 DD scripts in Tandem

04-20-2008, 04:16 AM
1) Script Title: a) Scrollable Content II & b) Dynamic Ajax Content

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

3) Describe problem: I'm running into a problem when my content loads using the Dynamic Ajax Content script and the content itself is contained in the Scrollable Content II box. The Scrollable Content II box does not work properly. The width specified is set properly but the content isn't constrained to the nscontainer (the div id="container" if the page was loaded in IE6.) height. Instead, the container expands to whatever the height of the content is which blows up my layout, pushing outside the constraints of the Dynamic Ajax Content DIV. I suspect it's an issue with too many nested divs.

TIA! Any help is GREATLY appreciated. I'm tearing my hair out over here trying everything I can try. :eek: :confused:

04-20-2008, 07:46 AM
The problem is due to the fact that the page you're fetching via Ajax contains JavaScript (in this case, Scrollable Content II). Any runtime JavaScript inside such pages won't work when added to the page this way. There are workarounds sometimes to this limitation depending on the script, though in this case, it would require quite a lot of work done to the later script.

04-20-2008, 03:58 PM
What would you suggest as an alternative? I really need to confine the space and have it scroll but do not want to use iframes or regular scrollbars.