1) Script Title: AJAX Includes script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...axincludes.htm
3) Describe problem: I am loading an html menu page with the include script. The html page contains the code for the Drop Down Tabs (5 styles) menu example 3. Everything works great with FF, but with IE7 only the top level menu is shown. I get the following error message when any page loads:
tabdropdown is undefined
and the 2nd level of menus does not appear. I know the script calling the tabdropdown.init in the included html file is not running.
By copying (shown below) the script and placing it after the ajax include I can get IE to see the 2nd level menus, but I still get the error. This action does not seem to affect FF.
<div id="topsection"><div class="innertube"><script type="text/javascript">ajaxinclude("header.htm")</script><script type="text/javascript">
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("slidemenu","auto")
</script>
</div></div>
Is there a way around this problem? While my test fix worked I still get an error on every page and this is not an elegant work around.
Any light you can shed on this problem will be greatly appreciated. I have been trying to resolve this problem for quite a while.



Reply With Quote

Bookmarks