Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question HELP with Javascript and browsers...


    Hi there.

    OK, the problem: I have a rather nice little cascading menu drop-down menu going on in a site I'm developing. I need to offer security (e-commerce will be brought in at a later stage) though when I combine the JavaScript with php, all I get in Mozilla browsers is the script and no site! What could be the problem?

    It works grand in IE - but we all know you can't fully trust that one. I'm more a web designer and JavaScripts are something I'm getting to grips with and understand on an average level - but I ain't no xpert! Some wise, age-old advise would be fantastic!

    The script is declared as JavaScript1.2 - is this a big difference/jump from plain old JavaScript?

    Thanks for your time!

    Kindest Regards

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts


    How about posting some script?

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,639
    Thanks
    0
    Thanked 649 Times in 639 Posts
    The correct way to declare a Javascript is using

    <script type="text/javascript">

    There is no provision for declaring which version of Javascript without using the now obsolete language attribute.

    A link to the page with the problem would be a big help in figuring out what is wrong.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •