1) Script Title:
Ajax Tabs Content Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...axtabscontent/
3) Describe problem:
Hey there,
first of all: thanks a lot for the great work, the script works (almost) perfect!
But I've got one question:
I produce the tabs dynamic out of a database ... no problem so far ... works well.
When I get a url like /index.php/testing/tab1
then I would like to set 'tab1' on page 'testing' as active, no matter in which order the tabs are.
Until now no problems, it took me a while, but it's working.
Here a litte bit of source-code, which inserts the javascript to generate the tabs:
That really works great, but when I open a site with tabs in Firefox (actually 2.0.0.10, not tested in other versions yet), with a url like above, it sets the correct tab as active, but the content of the first tab (no matter which one this is) is displayed!!!Code:echo "<script type=\"text/javascript\">\n"; echo "<!--\n"; echo "var tabs=new ddajaxtabs(\"tabcontainer\", \"text_tabs\")\n"; echo "tabs.setpersist(false)\n"; echo "tabs.setselectedClassTarget(\"link\")\n"; echo "tabs.init()\n"; echo ($tab["bezeichnung"]!="")?"tabs.expandit('".$tab["bezeichnung"]."')\n":""; echo "//-->\n"; echo "</script>\n";
Like you see, I set tabs.setpersist to false, it works perfectly in IE, but not in Firefox ...
Do you have any idea on this problem? Thanks in advance for comments!



Reply With Quote

Bookmarks