Results 1 to 2 of 2

Thread: Switch Content inside Ajax Tabs Content Script

  1. #1
    Join Date
    Nov 2007
    Posts
    63
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default Switch Content inside Ajax Tabs Content Script

    1) Script Title: Switch Content Script II (icon based)
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...chcontent2.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/dynamici...tent/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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Foundas (04-13-2010)

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
  •