View Full Version : Ajax Tabs Content script + pop up window

09-25-2006, 06:01 PM
1) Script Title: Ajax Tabs Content script

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

3) Describe problem:

I tried loading an external HTML file containing code that pops up windows (I used the demo from http://www.brainjar.com/dhtml/windows/) I have that code broken down into 3 parts - a .js file a .css file and the .html file. I load it as follows :

<li><a href="int_win.html" rel="ajaxcontentarea" rev="int_win.css, int_win.js">test</a></li>

When I load the HTML page on its own everything works fine, but when I load it inside a tab, the links stop responding.
My goal is to eventually use ASP to display records from a database in a tab, and to use the popup window to to add / edit records in that table.

Any input greatly appreciated.

:cool: WingNut

09-25-2006, 06:46 PM
Does your int_win.js script require an onload event? The brainjar demo does (and incidentally doesn't work in Opera). If so, have a look at:


In any case, if you need more help with this, the best thing would be to provide a link to a live demo of the problem and to post that link here. Oh, and you might want to rethink this as, server-side code and Ajax do not usually play well together.

09-27-2006, 12:24 PM
Thanks for the input John, That did the trick!
Any suggestions how I can incorporate database output into Ajax Tabs?

09-30-2006, 05:21 PM
You really cannot. Ajax tabs content is retrieved from a page that is static from the point of view of the server. At least that is what I think. You could do a test. Put a server-side variable on one of the content pages and see what happens when it is loaded into a tab. My guess is that it will not be resolved, even if it would be if the page were viewed independently. The only way that I can think of would be to put a hybrid javascript which includes PHP on the top page and pull the javascript versions of the server variables from the top page when the tab content page is retrieved. However, even with this method, the server-side variable will only be updated as of the most recent serving (loading) of the top page.