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 Jun 17, 2003 | 10:34 PM
  #1  
druddle's Avatar
druddle
Thread Starter
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
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
Reply
Old Jun 17, 2003 | 10:45 PM
  #2  
stu200's Avatar
stu200
Scooby Regular
iTrader: (1)
 
Joined: Apr 2001
Posts: 531
Likes: 0
Post

I'll take a look. My focus is server-side, but a fresh pair of eyes sometimes helps
Reply
Old Jun 18, 2003 | 09:16 AM
  #3  
Alec's Avatar
Alec
Scooby Regular
 
Joined: Aug 1999
Posts: 583
Likes: 0
Post

Same here.

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

Alec
Reply
Old Jun 18, 2003 | 09:17 AM
  #4  
super_si's Avatar
super_si
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

Same here ive spent hours ironing out bugs in mine.

Si
Reply
Old Jun 18, 2003 | 09:38 AM
  #5  
druddle's Avatar
druddle
Thread Starter
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
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
Reply
Old Jun 18, 2003 | 09:47 AM
  #6  
michael_clarkson's Avatar
michael_clarkson
Scooby Regular
 
Joined: Jan 2001
Posts: 253
Likes: 0
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,"","");
Reply
Old Jun 18, 2003 | 09:49 AM
  #7  
druddle's Avatar
druddle
Thread Starter
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Post

Oops that will never work then will it !! Give us a mo to change it...
Reply
Old Jun 18, 2003 | 09:52 AM
  #8  
druddle's Avatar
druddle
Thread Starter
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
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
Reply
Old Jun 18, 2003 | 10:14 AM
  #9  
druddle's Avatar
druddle
Thread Starter
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
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]
Reply
Old Jun 18, 2003 | 01:36 PM
  #10  
super_si's Avatar
super_si
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

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

Menu like this??
SI
Reply
Old Jun 18, 2003 | 02:22 PM
  #11  
druddle's Avatar
druddle
Thread Starter
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
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
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
PetrolHeadKid
Driving Dynamics
10
Oct 5, 2015 05:19 PM
T.K
General Technical
10
Oct 2, 2015 11:35 AM
LostUser
Non Scooby Related
11
Sep 29, 2015 11:00 AM
jobegold@hotmail.co.uk
ScoobyNet General
2
Sep 27, 2015 09:44 PM




All times are GMT +1. The time now is 10:36 AM.