• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Object expected line 37 char 1 code 0

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Senior Developers,

Greetings of the Day!

i have a problem regarding my web site. while i view my web on my local host it works fine but when i publish it i receive this error message " Object expected line 37 char 1 code 0". Please held me as i am unable to view my navigation menu.


published web link "http://www.az-lawassociates.com
and the code of its JS file is as follows:-
.....................................//----------DHTML Menu Created using AllWebMenus PRO ver 5.1-#748---------------
//C:\Documents and Settings\Administrator\Desktop\FOR COMPLETION A&Z\Final A&Zmenu.awm
var awmMenuName='FinalA&Zmenu';
var awmLibraryBuild=748;
var awmLibraryPath='/azdata';
var awmImagesPath='/azassets';
var awmSupported=(navigator.appName + navigator.appVersion.substring(0,1)=="Microsoft Internet Explorer" || document.all || document.layers || navigator.userAgent.indexOf('Opera')>-1 || navigator.userAgent.indexOf('Konqueror')>-1)?1:0;
if (awmAltUrl!='' && !awmSupported) window.location.replace(awmAltUrl);
if (awmSupported){
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Chrome')>-1)?2:((nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1))));
var mpi=document.location,xt="";
var mpa=mpi.protocol+"//"+mpi.host;
var mpi=mpi.protocol+"//"+mpi.host+mpi.pathname;
if(scriptNo==1){oBC=document.all.tags("BASE");if(oBC && oBC.length) if(oBC[0].href) mpi=oBC[0].href;}
while (mpi.search(/\\/)>-1) mpi=mpi.replace("\\","/");
mpi=mpi.substring(0,mpi.lastIndexOf("/")+1);
var e=document.getElementsByTagName("SCRIPT");
for (var i=0;i<e.length;i++){if (e[i].src){if (e[i].src.indexOf(awmMenuName+".js")!=-1){xt=e[i].src.split("/");if (xt[xt.length-1]==awmMenuName+".js"){xt=e[i].src.substring(0,e[i].src.length-awmMenuName.length-3);if (e[i].src.indexOf("://")!=-1){mpi=xt;}else{if(xt.substring(0,1)=="/")mpi=mpa+xt; else mpi+=xt;}}}}}
while (mpi.search(/\/\.\//)>-1) {mpi=mpi.replace("/./","/");}
var awmMenuPath=mpi.substring(0,mpi.length-1);
while (awmMenuPath.search("'")>-1) {awmMenuPath=awmMenuPath.replace("'","%27");}
document.write("<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>");
var n=null;
awmzindex=1000;
}

var awmImageName='';
var awmPosID='';
var awmSubmenusFrame='';
var awmSubmenusFrameOffset;
var awmOptimize=0;
var awmUseTrs=0;
var awmSepr=["0","","",""];
function awmBuildMenu(){
if (awmSupported){
awmImagesColl=["main-header.gif",7,29,"main-footer.gif",7,29,"main-button-tile.gif",5,29,"main-buttonOver-tile.gif",5,29,"sub-button-tile.gif",5,21,"sub-buttonOver-tile.gif",5,21,"sub-button-left.gif",3,21,"sub-buttonOver-left.gif",3,21,"sub-button-right.gif",3,21,"sub-buttonOver-right.gif",3,21];
awmCreateCSS(1,2,1,'#FFFFFF',n,n,'14px Verdana',n,'none','0','#000000','0px 0px 0px 0',0);
awmCreateCSS(0,2,1,'#FFFFFF',n,n,'14px Verdana',n,'none','0','#000000','0px 0px 0px 0',0);
awmCreateCSS(1,2,1,'#000000',n,n,'14px sans-serif',n,'none','0','#000000','0px 0px 0px 0',0);
awmCreateCSS(0,2,1,'#FFFFFF',n,n,'14px sans-serif',n,'none','0','#000000','0px 0px 0px 0',0);
awmCreateCSS(0,1,0,n,n,n,n,n,'none','0','#000000',0,0);
awmCreateCSS(1,2,1,'#FFFFFF',n,2,'bold 10px Tahoma',n,'none','0','#000000','5px 10px 5px 10',1);
awmCreateCSS(0,2,1,'#FFFFFF',n,3,'bold 10px Tahoma',n,'none','0','#000000','5px 10px 5px 10',1);
awmCreateCSS(1,2,0,'#FFFFFF',n,4,'bold 10px Tahoma',n,'none','0','#000000','0px 10px 0px 7',1);
awmCreateCSS(0,2,0,'#FFFFFF',n,5,'bold 10px Tahoma',n,'none','0','#000000','0px 10px 0px 7',1);
awmCreateCSS(1,2,0,'#FFFFFF',n,4,'bold 10px Tahoma',n,'none','0','#000000','0px 10px 0px 10',1);
awmCreateCSS(0,2,0,'#FFFFFF',n,5,'bold 10px Tahoma',n,'none','0','#000000','0px 10px 0px 10',1);
var s0=awmCreateMenu(0,0,0,0,1,0,0,0,0,97,235,0,1,4,0,0,1,n,n,100,0,0,97,235,810,-1,1,200,200,0,0,0,"0,0,0",n,n,n,n,n,n,n,n,0,0);
it=s0.addItemWithImages(0,1,1,"","","","",0,0,0,3,3,3,n,n,n,"",n,n,n,n,n,0,0,0,n,n,n,n,n,n,0,0,0,0,0,n,n,n);
it=s0.addItem(5,6,6,"Home",n,n,"","Home",n,n,n,"index.html",n,0,0,2,0,0);
it=s0.addItem(5,6,6,"Area of Work",n,n,"","Area of Work",n,n,n,"Area of Work.html",n,0,0,2,0,0);
var s1=it.addSubmenu(0,0,-4,0,0,0,0,4,0,1,0,n,n,100,0,1,0,-1,1,200,200,0,0,"0,0,0",1);
it=s1.addItemWithImages(7,8,8,"    Banking & Finance",n,n,"",n,n,n,3,3,3,n,n,n,"Banking & Finance",n,n,n,"Banking & Finance.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s1.addItemWithImages(7,8,8,"    Contract & Agreement",n,n,"",n,n,n,3,3,3,n,n,n,"Contract & Agreement",n,n,n,"Contract & Agreement.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s1.addItemWithImages(7,8,8,"    Corprate Law",n,n,"",n,n,n,3,3,3,n,n,n,"Corporate Law",n,n,n,"Corporate Law.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s1.addItemWithImages(7,8,8,"    Corporate Advisory",n,n,"",n,n,n,3,3,3,n,n,n,"Corporate Advisory",n,n,n,"Corporate Advisory.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s1.addItemWithImages(7,8,8,"    Education",n,n,"",n,n,n,3,3,3,n,n,n,"Education",n,n,n,"Education.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
var s2=it.addSubmenu(0,0,-4,0,0,0,0,4,0,1,0,n,n,100,-1,2,0,-1,1,200,200,0,0,"0,0,0",1);
it=s2.addItemWithImages(9,10,10,"Study in UK",n,n,"",n,n,n,3,3,3,n,n,n,"Study in UK",n,n,n,"UK Education.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s2.addItemWithImages(9,10,10,"Study in China",n,n,"",n,n,n,3,3,3,n,n,n,"Study in China",n,n,n,"China Education.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s1.addItemWithImages(7,8,8,"    Energy",n,n,"",n,n,n,3,3,3,n,n,n,"Energy Advisory",n,n,n,"Energy.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s1.addItemWithImages(7,8,8,"    Immigration",n,n,"",n,n,n,3,3,3,n,n,n,"Immigration",n,n,n,"Immigration.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
var s2=it.addSubmenu(0,0,-4,0,0,0,0,4,0,1,0,n,n,100,-1,3,0,-1,1,200,200,0,0,"0,0,0",1);
it=s2.addItemWithImages(9,10,10,"Australia",n,n,"",n,n,n,3,3,3,n,n,n,"Australia",n,n,n,"Australia.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s2.addItemWithImages(9,10,10,"Canada",n,n,"",n,n,n,3,3,3,n,n,n,"Canada",n,n,n,"Canada.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s2.addItemWithImages(9,10,10,"Denmark",n,n,"",n,n,n,3,3,3,n,n,n,"Denmark",n,n,n,"Denmark.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s2.addItemWithImages(9,10,10,"UK",n,n,"",n,n,n,3,3,3,n,n,n,"UK",n,n,n,"UK.html",n,0,0,2,6,7,7,8,9,9,1,1,1,0,0,n,n,n);
it=s0.addItem(5,6,6,"Our People",n,n,"","Our People",n,n,n,"Our People.html",n,0,0,2,0,0);
it=s0.addItem(5,6,6,"Our Clients",n,n,"","Our Clients",n,n,n,"Our Clients.html",n,0,0,2,0,0);
it=s0.addItem(5,6,6,"Career",n,n,"","Career",n,n,n,"Careers.html",n,0,0,2,0,0);
it=s0.addItem(5,6,6,"Contact Us",n,n,"","Contact Us",n,n,n,"Contact Us.html",n,0,0,2,0,0);
it=s0.addItemWithImages(2,3,3,"","","","",1,1,1,3,3,3,n,n,n,"",n,n,n,n,n,0,0,0,n,n,n,n,n,n,0,0,0,0,0,n,n,n);
s0.pm.buildMenu();
}}

Thanks and regards
kay
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
 
khalid waheed minhas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks that is working now and next time i would make sure while submitting my code at this portal again thanks for advise.

Have a NICE DAY.....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic