Are you saying you have a JavaScript "for" loop code within the PHP page that works on its own, but doesn't when the PHP page is fetched via Ajax Tab Content script?? This is to be expected, as when the page is fetched via Ajax, basically its contents is included into the container DIV similar to a string being pasted onto the page. Certain JavaScript code within the string will not be executed.
What you can do is create a blank HTML page with an iframe in it (ie: mypage.htm), something like:
Code:
<iframe src="dynamic.php"></iframe>
And inside Ajax Tab Content script, embed that HTML page instead (mypage.htm). The actual php page is included inside this iframe.
Bookmarks