Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Help ! DHTML/Javascript problems on website

Thread Tools
 
Search this Thread
 
Old 17 June 2003, 10:34 PM
  #1  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Exclamation

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
Old 17 June 2003, 10:45 PM
  #2  
stu200
Scooby Regular
iTrader: (1)
 
stu200's Avatar
 
Join Date: Apr 2001
Posts: 531
Likes: 0
Received 0 Likes on 0 Posts
Post

I'll take a look. My focus is server-side, but a fresh pair of eyes sometimes helps
Old 18 June 2003, 09:16 AM
  #3  
Alec
Scooby Regular
Support Scoobynet!
 
Alec's Avatar
 
Join Date: Aug 1999
Posts: 583
Likes: 0
Received 0 Likes on 0 Posts
Post

Same here.

Point me in the direction of the code and i'll have a look.

Alec
Old 18 June 2003, 09:17 AM
  #4  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Same here ive spent hours ironing out bugs in mine.

Si
Old 18 June 2003, 09:38 AM
  #5  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 18 June 2003, 09:47 AM
  #6  
michael_clarkson
Scooby Regular
 
michael_clarkson's Avatar
 
Join Date: Jan 2001
Posts: 253
Likes: 0
Received 0 Likes on 0 Posts
Post

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,"","");
Old 18 June 2003, 09:49 AM
  #7  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Oops that will never work then will it !! Give us a mo to change it...
Old 18 June 2003, 09:52 AM
  #8  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Cant get to the ftp site from my pc at work. Do you guys get the same errors on the load of the menu ?

Dave
Old 18 June 2003, 10:14 AM
  #9  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

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]
Old 18 June 2003, 01:36 PM
  #10  
super_si
Scooby Regular
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

http://www.koncept-developments.com/

Menu like this??
SI
Old 18 June 2003, 02:22 PM
  #11  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
PetrolHeadKid
Driving Dynamics
10
05 October 2015 05:19 PM
T.K
General Technical
10
02 October 2015 11:35 AM
LostUser
Non Scooby Related
11
29 September 2015 11:00 AM
jobegold@hotmail.co.uk
ScoobyNet General
2
27 September 2015 09:44 PM



Quick Reply: Help ! DHTML/Javascript problems on website



All times are GMT +1. The time now is 01:17 AM.