I updated my js files from 747 to 759 and am getting the following error:
'_iw' is null or not an object
I can't find any reference to this except in the mmenudom.js file. The really odd thing is the only menu that has died is the horizontal dropdown menu. The other menus on the page are fine.
Any ideas what this variable is looking for?
Thanks
Renate
5.759 error
Unfortunately, it's an intranet. Here is the source of the menus on the page:
This is built by an asp script from mssql.
The problem seems to be the itemwidth field, but I changed the null values to 0 and it still comes back with the same error.
Code: Select all
<table width=100% cellSpacing="0" cellPadding="0">
<tr>
<td>
<SCRIPT language=JavaScript src="/includes/milonic_src.js"></SCRIPT>
<SCRIPT language=JavaScript src="/includes/mmenudom.js"></SCRIPT>
<SCRIPT language=JavaScript src="/includes/treemenu.js"></SCRIPT>
<SCRIPT language=JavaScript src="/includes/keypress.js"></SCRIPT>
<table width=100% cellspacing=0 cellpadding=0>
<tr bgcolor="0E2E92" style="border-color:#0E2E92">
<td height=21 valign=top> <script>
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
treeOffset=0
singleMasterMenu=false
_active=true;
with(dropdown=new mm_style()){
oncolor="#FFFFFF";
onbgcolor="#0E2E92";
offcolor="#FFFFFF";
offbgcolor="#0E2E92";
padding=2;
separatorsize=0;
borderwidth=0;
fontfamily="verdana";
fontsize="10px";
subimage="/images/arrowdn.gif";
fontweight="bold";
dragable=0;
openonclick=1;
itemwidth=0;
position="relative";
}
with(dropdownsub=new mm_style()){
oncolor="#000000";
onbgcolor="#ACD194";
offcolor="#FFFFFF";
offbgcolor="#0E2E92";
padding=2;
separatorsize=0;
borderwidth=0;
fontfamily="verdana";
fontsize="10px";
subimage="/images/arrowrt.gif";
dragable=0;
openonclick=0;
itemwidth=0;
position="relative";
}
with(milonic=new menuname("dropdownnew")){
style=dropdown;
alwaysvisible=1;
orientation="horizontal";
itemwidth=0
aI("text=Homepage;url=/default.asp;rawcss=white-space:nowrap;");
aI("text=| Clients / Matters;showmenu=clients;rawcss=white-space:nowrap;");
aI("text=| Departments;showmenu=dept;rawcss=white-space:nowrap;");
aI("text=| Offices;showmenu=office;rawcss=white-space:nowrap;");
aI("text=| Practice Areas;showmenu=practice;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("dept")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Facilities;url=/facilities;rawcss=white-space:nowrap;");
aI("text=Finance/Accounting;url=/finance;rawcss=white-space:nowrap;");
aI("text=Human Resources;url=/HR;rawcss=white-space:nowrap;");
aI("text=Information Systems;url=/IS;rawcss=white-space:nowrap;");
aI("text=Library;url=/library;rawcss=white-space:nowrap;");
aI("text=Marketing;url=/marketing;rawcss=white-space:nowrap;");
aI("text=Technical Education & Support;url=/training;rawcss=white-space:nowrap;");
aI("text=Telecommunications;url=/telecomm;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("office")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Ann Arbor;url=http://www.dykema.com/office/annarbor.asp;rawcss=white-space:nowrap;");
aI("text=Bloomfield Hills;url=http://www.dykema.com/office/bloomfield.asp;rawcss=white-space:nowrap;");
aI("text=Chicago;url=/chicago;rawcss=white-space:nowrap;");
aI("text=Detroit;url=/detroit;rawcss=white-space:nowrap;");
aI("text=Grand Rapids;url=/grandrapids;rawcss=white-space:nowrap;");
aI("text=Joliet;url=http://www.dykema.com/office/joliet.asp;rawcss=white-space:nowrap;");
aI("text=Lansing;url=/lansing;rawcss=white-space:nowrap;");
aI("text=Lisle;url=http://www.dykema.com/office/lisle.asp;rawcss=white-space:nowrap;");
aI("text=Los Angeles;url=http://www.dykema.com/office/losangeles.asp;rawcss=white-space:nowrap;");
aI("text=Washington, D.C.;url=/dc;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("practice")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Construction Law;url=/construction;rawcss=white-space:nowrap;");
aI("text=Business Services;url=/business;showmenu=business2;rawcss=white-space:nowrap;");
aI("text=Employment;url=/labor;rawcss=white-space:nowrap;");
aI("text=Government Policy;showmenu=government2;rawcss=white-space:nowrap;");
aI("text=Litigation;url=/litigation;rawcss=white-space:nowrap;");
aI("text=Real Estate & Environmental;showmenu=realestate2;rawcss=white-space:nowrap;");
aI("text=Taxation & Estates;showmenu=tax2;rawcss=white-space:nowrap;");
aI("text=<b>Full List of Groups</b>;url=/general/groupsort.asp;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("business2")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Automotive;url=http://www.dykema.com/automotive;rawcss=white-space:nowrap;");
aI("text=Bankruptcy;url=/bankruptcy;rawcss=white-space:nowrap;");
aI("text=Biotechnology & Life Sciences;url=http://www.dykema.com/biotech;rawcss=white-space:nowrap;");
aI("text=Corporate Finance;url=/corporate;showmenu=corpfin2;rawcss=white-space:nowrap;");
aI("text=Health Care;url=/healthcare;rawcss=white-space:nowrap;");
aI("text=Intellectual Property;url=/IP;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("corpfin2")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Brunswick;url=/brunswick;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("government2")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Antitrust & Trade Regulation;url=/antitrust;rawcss=white-space:nowrap;");
aI("text=Government Policy;url=/government;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("realestate2")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Environmental;url=/environmental;rawcss=white-space:nowrap;");
aI("text=Real Estate;url=/realestate;rawcss=white-space:nowrap;");
aI("text=Construction Law;url=/construction;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("tax2")){
style=dropdownsub;
alwaysvisible=0;
overflow="scroll";
itemwidth=0
aI("text=Employee Benefits;url=http://www.dykema.com/employee;rawcss=white-space:nowrap;");
aI("text=Taxation & Estates;url=/tax;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("clients")){
style=dropdownsub;
alwaysvisible=0;
itemwidth=0
aI("text=Brunswick;url=/brunswick;rawcss=white-space:nowrap;");
aI("text=Cingular;url=/cingular;rawcss=white-space:nowrap;");
aI("text=GlaxoSmithKline;url=/gsk;rawcss=white-space:nowrap;");
aI("text=Kmart;url=/kmart;rawcss=white-space:nowrap;");
aI("text=Shell;url=/shell;rawcss=white-space:nowrap;");
aI("text=UPS Core Counsel Network;url=/ups;rawcss=white-space:nowrap;");
}
drawMenus()</script></td>
<td align="right" style="color:white;font-size:9pt">
</td>
</tr>
<tr><td height=275 valign=top><script>
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=0;
_subOffsetLeft=0;
treeOffset=0
singleMasterMenu=true
_active=true;
with(slidenav=new mm_style()){
oncolor="#000000";
onbgcolor="#EAEAEA";
offcolor="#0E2E92";
offbgcolor="#EAEAEA";
padding=2;
separatorsize=0;
borderwidth=1;
bordercolor="#EAEAEA";
borderstyle="solid";
fontfamily="verdana";
fontsize="11px";
subimage="/images/mplus.gif";
subimageposition="top,right";
onsubimage="/images/mplus.gif";
fontweight="bold";
dragable=0;
openonclick=0;
itemwidth=210;
clickcolor="#FFFFFF";
clickbgcolor="#0E2E92";
clicksubimage="/images/mminus.gif";
}
with(slidenavsub=new mm_style()){
oncolor="#000000";
onbgcolor="#FFFFFF";
offcolor="#000000";
offbgcolor="#FFFFFF";
padding=3;
separatorsize=0;
borderwidth=1;
bordercolor="#EAEAEA";
borderstyle="solid";
fontfamily="verdana";
fontsize="10px";
dragable=0;
openonclick=0;
itemwidth=200;
}
with(milonic=new menuname("slidenav")){
style=slidenav;
alwaysvisible=1;
itemwidth=210
aI("text=What's New;showmenu=whatsnew;type=tree;rawcss=white-space:nowrap;");
aI("text=Today's Events;showmenu=calendar;type=tree;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("whatsnew")){
style=slidenavsub;
alwaysvisible=0;
itemwidth=200
aI("text=<iframe height=225 width=204 src='/whatsnew.asp' scrolling='no' marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true></iframe>;type=html;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("directory")){
style=slidenavsub;
alwaysvisible=0;
itemwidth=200
aI("text=<form method=post name=attsearch action=''http://mydykema/bio/default.asp''><center><b>Bio:</b> <input type=hidden name=mode value=''srch''><input name=term value='' onclick=''reset()''> <input type=image src=''/images/search.gif'' align=absmiddle><br><a href=''/bio''>Advanced Search</a> | <a href=''biotemplate.pdf''>Bio Template</a><br><a href=''/telecomm/pdf/phone.pdf''>Phone Directory</a> | <a href=''/general/committees.asp''>Firm Committees</a></center></form>;type=form;rawcss=white-space:nowrap;");
aI("text=<a href=''http://members.calbar.ca.gov/search/member.aspx''>California Bar</a> | <a href=''http://www.dcbar.org/find_a_member/index.cfm''>D.C. Bar</a> | <a href=''http://www.iardc.org/lawyersearch.asp''>Illnois Bar</a><br><a href=''http://www.martindale.com/xp/Martindale/home.xml''>Martindale</a> | <a href=''http://www.michbar.org/memberdirectory/''>Michigan Bar</a><p>;type=html;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("calendar")){
style=slidenavsub;
alwaysvisible=0;
itemwidth=200
aI("text=<iframe height=100 width=204 src='/calendar.asp' scrolling='auto' marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true></iframe>;type=html;rawcss=white-space:nowrap;");
}
with(milonic=new menuname("favorites")){
style=slidenavsub;
alwaysvisible=0;
itemwidth=200
aI("text=<iframe height=100 width=204 src='/favorites.asp' scrolling='auto' marginwidth=0 marginheight=0 frameborder=0 allowtransparency=true id='favframe' name='favframe'></iframe>;type=html;rawcss=white-space:nowrap;");
}
drawMenus()</script></td></tr>
</table>
<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT">
<!--
openBranchByName('whatsnew');
//-->
</script>
The problem seems to be the itemwidth field, but I changed the null values to 0 and it still comes back with the same error.