Two conflicting Javascripts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gareth

    Two conflicting Javascripts

    I have two cascading menus i want to run on my web page, i can make
    one work fine, however when i add the other menu both do not work. I
    presume this is beacuse the menus do not no which script to call? Is
    there a way i can make menu1 link to javascript1 and menu2 link to
    javascript2?

    Any suggestions would be greatly appriciated, Regards Gareth
  • Evertjan.

    #2
    Re: Two conflicting Javascripts

    Gareth wrote on 17 nov 2003 in comp.lang.javas cript:
    [color=blue]
    > I have two cascading menus i want to run on my web page, i can make
    > one work fine, however when i add the other menu both do not work. I
    > presume this is beacuse the menus do not no which script to call? Is
    > there a way i can make menu1 link to javascript1 and menu2 link to
    > javascript2?
    >[/color]

    I suspect that you use global variables with the same name and/or functions
    with the same name. Change them!

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...