EricVonBar
02-07-2007, 09:15 AM
1) Script Title: Ajax Tabs Content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem: I have been trying to embed an Ajax tab within another tab. Here is where I am and the problems I have solved. First I used the rev to load a style sheet .css for the loaded page. This allowed the tabs to be displayed.
I attempted to load a .js file for the page, but had no luck. I was able to get the new pages to load in the content area, but I had to put a button on the page to run the script first to initialize the new tab list. After I push the button and run the init script first all of the pages page into the context area.
So I am down to the last stitch. It appears when loading a page scripts inside that page do not run. This sort of makes sense since only data is being loaded with the .innerHTML call. I tried using the onload facility but still the initialization script is not called.
Is there some way to trigger the script to be called after clicking on the tab. I guess I could add a hack to ajaxtabs.js, but there must be a simpler way.
BTW I added a couple of calls to ajaxtabs.js to query the software for the number of tabs in a context, the current tab and to increment a tab by +1 or -1 or I guess any number. It does not wrap but could. This allowed me to implement a page forward and page back facility. I re-wrote the .css file to put the tabs down the side of the page and now I have a page turner.
Let me know if anyone wants me to post these changes.
Thanks Eric
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem: I have been trying to embed an Ajax tab within another tab. Here is where I am and the problems I have solved. First I used the rev to load a style sheet .css for the loaded page. This allowed the tabs to be displayed.
I attempted to load a .js file for the page, but had no luck. I was able to get the new pages to load in the content area, but I had to put a button on the page to run the script first to initialize the new tab list. After I push the button and run the init script first all of the pages page into the context area.
So I am down to the last stitch. It appears when loading a page scripts inside that page do not run. This sort of makes sense since only data is being loaded with the .innerHTML call. I tried using the onload facility but still the initialization script is not called.
Is there some way to trigger the script to be called after clicking on the tab. I guess I could add a hack to ajaxtabs.js, but there must be a simpler way.
BTW I added a couple of calls to ajaxtabs.js to query the software for the number of tabs in a context, the current tab and to increment a tab by +1 or -1 or I guess any number. It does not wrap but could. This allowed me to implement a page forward and page back facility. I re-wrote the .css file to put the tabs down the side of the page and now I have a page turner.
Let me know if anyone wants me to post these changes.
Thanks Eric