PDA

View Full Version : Two JavaScripts conflicting, but why?


OMD
11-12-2002, 08:31 PM
I am trying to use two scripts on one page one is a DHTML menu the other a site search. I cannot find the conflicting variable. I get this error
'Item[...]' is null or not an object
The script is attached, please help if you can, thank you.

glenngv
11-13-2002, 02:26 AM
you declared item as one-dimensional array but you use it as two-dimensional array:

item[i][order[j]]

OMD
11-13-2002, 02:10 PM
Thanks glenngv!
Suggestions on how to fix it?

A1ien51
11-13-2002, 10:02 PM
look at this and see if you can figure it out...

http://www10.brinkster.com/A1ien51/basics/2darray.htm

OMD
11-14-2002, 02:58 PM
I see disparancies between your script eample and the one I am trying to run, as to how to correct it, no. I am in over my head in that regard. I have little experiance with JavaScript beyond inserting scripts into my HTML code. I can on occassion modify or fix scripts but this one is elluding me.
Thanks!