html / javascript

Discussion in 'HTML' started by Safran von Twesla, Jan 5, 2004.

  1. Hi,

    I have following problem:

    on my html-page I have two different javascript parts:
    1. external file
    <script src = 'javascript/script.js' type = 'text/javascript'>
    2. in <head>
    <script type = 'text/javascript' language = 'javascript'>
    [...]
    </script>

    The functions of 1. are working, but not those of 2.
    When deleting 1. (or inserting into 2.), it's working...
    What's the matter?

    Thanks for help

    SvT
    Safran von Twesla, Jan 5, 2004
    #1
    1. Advertising

  2. Safran von Twesla

    Kris Guest

    In article <>,
    Safran von Twesla <> wrote:

    > I have following problem:
    >
    > on my html-page I have two different javascript parts:
    > 1. external file
    > <script src = 'javascript/script.js' type = 'text/javascript'>
    > 2. in <head>
    > <script type = 'text/javascript' language = 'javascript'>
    > [...]
    > </script>
    >
    > The functions of 1. are working, but not those of 2.
    > When deleting 1. (or inserting into 2.), it's working...
    > What's the matter?


    My guess is that you have something like this:

    <script src="javascript/script.js" type="text/javascript">
    <script type="text/javascript">
    ....
    </script>

    That is a closing script tag missing. It should be:

    <script src="javascript/script.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    ....
    </script>

    Is that it?

    --
    Kris
    erlands (nl)
    Kris, Jan 5, 2004
    #2
    1. Advertising

  3. On Mon, 05 Jan 2004 18:28:22 +0100, Kris
    <> wrote:


    >My guess is that you have something like this:
    >
    ><script src="javascript/script.js" type="text/javascript">
    ><script type="text/javascript">
    >...
    ></script>
    >
    >That is a closing script tag missing. It should be:
    >
    ><script src="javascript/script.js" type="text/javascript">
    ></script>
    ><script type="text/javascript">
    >...
    ></script>
    >
    >Is that it?


    Incredible, that's it...
    Forgot to close the <script>-Tag...

    Thanks

    SvT
    Safran von Twesla, Jan 5, 2004
    #3
  4. Safran von Twesla

    PeterMcC Guest

    Safran von Twesla wrote:
    > On Mon, 05 Jan 2004 18:28:22 +0100, Kris
    > <> wrote:
    >
    >
    >> My guess is that you have something like this:
    >>
    >> <script src="javascript/script.js" type="text/javascript">
    >> <script type="text/javascript">
    >> ...
    >> </script>
    >>
    >> That is a closing script tag missing. It should be:
    >>
    >> <script src="javascript/script.js" type="text/javascript">
    >> </script>
    >> <script type="text/javascript">
    >> ...
    >> </script>
    >>
    >> Is that it?

    >
    > Incredible, that's it...
    > Forgot to close the <script>-Tag...


    And the crystal ball award goes to...

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
    PeterMcC, Jan 5, 2004
    #4
    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. Dhanasankar S via DotNetMonster.com

    How to read the BODY of HTML file from another HTML file using javascript?

    Dhanasankar S via DotNetMonster.com, Feb 26, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    462
    =?Utf-8?B?dHBlcnJp?=
    Feb 28, 2005
  2. David Virgil Hobbs
    Replies:
    2
    Views:
    17,251
  3. Adam Akhtar
    Replies:
    9
    Views:
    524
    Florian Gilcher
    Aug 16, 2008
  4. Lucy
    Replies:
    6
    Views:
    345
    Jim Ley
    Jan 1, 2004
  5. srinivas
    Replies:
    0
    Views:
    889
    srinivas
    Nov 18, 2005
Loading...

Share This Page