js file not loading in Firefox, Netscape

Discussion in 'ASP .Net' started by Joe, Apr 4, 2008.

  1. Joe

    Joe Guest

    I have the following line in the head section:
    <head>
    <script language="javascript" type="text/javascript"
    src="myscript.js"></script>
    ....
    </head>

    This works fine in IE and Safari. I can call the createWindow function
    defined in the js without a problem.

    In Firefox and Netscape I get an error "createWindow is not defined".

    Is there any way I can debug this to see if it's really being loaded? I use
    the Error Console to see the not defined error.

    Thanks,
    Joe
     
    Joe, Apr 4, 2008
    #1
    1. Advertising

  2. Joe

    Joe Guest

    This was my mistake. It turned out that I wrote type="jscript" in my page
    but in the example below I did it correctly.

    "Joe" <> wrote in message
    news:...
    >I have the following line in the head section:
    > <head>
    > <script language="javascript" type="text/javascript"
    > src="myscript.js"></script>
    > ...
    > </head>
    >
    > This works fine in IE and Safari. I can call the createWindow function
    > defined in the js without a problem.
    >
    > In Firefox and Netscape I get an error "createWindow is not defined".
    >
    > Is there any way I can debug this to see if it's really being loaded? I
    > use the Error Console to see the not defined error.
    >
    > Thanks,
    > Joe
    >
     
    Joe, Apr 4, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom
    Replies:
    0
    Views:
    513
  2. Mickey Segal
    Replies:
    1
    Views:
    690
    Mickey Segal
    May 21, 2004
  3. WindAndWaves
    Replies:
    1
    Views:
    413
    WindAndWaves
    Dec 15, 2004
  4. yaktipper
    Replies:
    10
    Views:
    304
    Richard Cornford
    Jul 10, 2003
  5. Replies:
    3
    Views:
    419
    ExGuardianReader
    Jan 8, 2005
Loading...

Share This Page