tfish77
04-04-2007, 03:01 PM
1) Script Title:
Ajax Tabs Content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
3) Describe problem:
I am a relative javascript/ajax n00b, and I have what I'm sure is a common problem, but I have been unable to solve it. I am using the Ajax Tabs script to load up different pages from my site in a nice tabbed interface. Some of my target URLs contain javascript. When the innerHTML replacement occurs, that javascript is inserted into the page (along with all the HTML from my target URL), however, it does not run. I know that the "eval()" function is probably required here, but I do not know what the best practice is for using it in this scenario.
I would greatly appreciate any help. Thank you.
Ajax Tabs Content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
3) Describe problem:
I am a relative javascript/ajax n00b, and I have what I'm sure is a common problem, but I have been unable to solve it. I am using the Ajax Tabs script to load up different pages from my site in a nice tabbed interface. Some of my target URLs contain javascript. When the innerHTML replacement occurs, that javascript is inserted into the page (along with all the HTML from my target URL), however, it does not run. I know that the "eval()" function is probably required here, but I do not know what the best practice is for using it in this scenario.
I would greatly appreciate any help. Thank you.