Results 1 to 4 of 4

Thread: Ajax Tabs Content script + pop up window

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Tabs Content script + pop up window

    1) Script Title: Ajax Tabs Content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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 :
    Code:
    <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.

    WingNut

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    http://www.dynamicdrive.com/forums/s...ad.php?t=13003

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the input John, That did the trick!
    Any suggestions how I can incorporate database output into Ajax Tabs?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •