Help ! DHTML/Javascript problems on website
#1
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
Can anyone help me with a dhtml/Javascript problem i have with a website i am trying to create.
I can point you at a URL and show you the script if you can.
Cheers
Dave
I can point you at a URL and show you the script if you can.
Cheers
Dave
#5
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
Right basic problem is that the main frameset is loaded, and within one of the frames (contents) there is a dhtml/javascript menu. This fails to load with 2 script errors.
To me it looks like the menu9_com.js script is failing to pull the variable values from the menu_var.jas file but i dont know why.
URL is http://homepage.ntlworld.com/druddle/sr/index.htm. I will mail the .js files to you.
Dave
To me it looks like the menu9_com.js script is failing to pull the variable values from the menu_var.jas file but i dont know why.
URL is http://homepage.ntlworld.com/druddle/sr/index.htm. I will mail the .js files to you.
Dave
#6
Did you mean to have variables still pointing to locations on your local disk ?
menu_var.js
------------
var BaseHref=D:/Web/Steve Abbott Racing/;
Menu6_1_1=new Array("Circuit Info","D:/Web/Steve Abbot Racing/trackinfo/valencia.htm","",0,20,100,"red","red","black","whi te","","",-1,-1,-1,"","");
menu_var.js
------------
var BaseHref=D:/Web/Steve Abbott Racing/;
Menu6_1_1=new Array("Circuit Info","D:/Web/Steve Abbot Racing/trackinfo/valencia.htm","",0,20,100,"red","red","black","whi te","","",-1,-1,-1,"","");
Trending Topics
#9
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
SOme more info
In the menu9.com.js file i manually entered the variable values from the menu_var.js file and as i did this for each variable in line. Every time i tested it the error moved onto the next variable that was being pulled in from the menu_var.js file. Thats why i think its having a problem pulling the variables through.
This is the line in the menu9_com.js file with the variable declarations (line 10 i think)
var RmbrNow=null,FLoc,ScLoc,DcLoc,SWinW,SWinH,FWinW,FW inH,SLdAgnWin,FColW,SColW,DColW,RLvl=0,FrstCreat=1 ,Ldd=0,Crtd=0,IniFlg,AcrssFrms=1,FrstCntnr=null,Cu rOvr=null,CloseTmr=null,CntrTxt,TxtClose,ImgStr,Sh wFlg=0,M_StrtTp=StartTop,M_StrtLft=StartLeft,Stati cPos=0,LftXtra=DomNav?LeftPaddng:0,TpXtra=DomNav?T opPaddng:0,FStr="",M_Hide=Nav4?"hide":"hidden",M_S how=Nav4?"show":"visible",Par=MenuUsesFrames?paren t:window,Doc=Par.document,Bod=Doc.body,Trigger=Nav Yes?Par:Bod;
var Ztop=100,InitLdd=0,P_X=DomYes?"px":"";
The first variable it complains about is M_StartTp.
[Edited by druddle - 6/18/2003 10:18:26 AM]
In the menu9.com.js file i manually entered the variable values from the menu_var.js file and as i did this for each variable in line. Every time i tested it the error moved onto the next variable that was being pulled in from the menu_var.js file. Thats why i think its having a problem pulling the variables through.
This is the line in the menu9_com.js file with the variable declarations (line 10 i think)
var RmbrNow=null,FLoc,ScLoc,DcLoc,SWinW,SWinH,FWinW,FW inH,SLdAgnWin,FColW,SColW,DColW,RLvl=0,FrstCreat=1 ,Ldd=0,Crtd=0,IniFlg,AcrssFrms=1,FrstCntnr=null,Cu rOvr=null,CloseTmr=null,CntrTxt,TxtClose,ImgStr,Sh wFlg=0,M_StrtTp=StartTop,M_StrtLft=StartLeft,Stati cPos=0,LftXtra=DomNav?LeftPaddng:0,TpXtra=DomNav?T opPaddng:0,FStr="",M_Hide=Nav4?"hide":"hidden",M_S how=Nav4?"show":"visible",Par=MenuUsesFrames?paren t:window,Doc=Par.document,Bod=Doc.body,Trigger=Nav Yes?Par:Bod;
var Ztop=100,InitLdd=0,P_X=DomYes?"px":"";
The first variable it complains about is M_StartTp.
[Edited by druddle - 6/18/2003 10:18:26 AM]
#11
Scooby Regular
Thread Starter
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes
on
0 Posts
Went home at lunch and fixed it. Was using an old incorrect version of the menu_com.js file. Recompiled it with the new changes I had made and as if by magic it works.
Will let you know when site is up (and URL).
Dave
Will let you know when site is up (and URL).
Dave
Thread
Thread Starter
Forum
Replies
Last Post
jobegold@hotmail.co.uk
ScoobyNet General
2
27 September 2015 09:44 PM