Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > html / javascript

Reply
Thread Tools

html / javascript

 
 
Safran von Twesla
Guest
Posts: n/a
 
      01-05-2004
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
 
Reply With Quote
 
 
 
 
Kris
Guest
Posts: n/a
 
      01-05-2004
In article <(E-Mail Removed)>,
Safran von Twesla <(E-Mail Removed)> 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
http://www.velocityreviews.com/forums/(E-Mail Removed)erlands (nl)
 
Reply With Quote
 
 
 
 
Safran von Twesla
Guest
Posts: n/a
 
      01-05-2004
On Mon, 05 Jan 2004 18:28:22 +0100, Kris
<(E-Mail Removed)> 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

 
Reply With Quote
 
PeterMcC
Guest
Posts: n/a
 
      01-05-2004
Safran von Twesla wrote:
> On Mon, 05 Jan 2004 18:28:22 +0100, Kris
> <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox html, my downloaded html and firebug html different? Adam Akhtar Ruby 9 08-16-2008 07:55 PM
Load HTML in text strings into HTML parser in Javascript David Virgil Hobbs HTML 2 04-09-2006 01:21 PM
How to read the BODY of HTML file from another HTML file using javascript? Dhanasankar S via DotNetMonster.com ASP .Net 1 02-28-2005 05:51 PM
How to read the BODY of HTML file from another HTML file using javascript? Dhanasankar S via DotNetMonster.com ASP .Net 0 02-26-2005 10:58 AM
help! javascript inline of an HTML to open an HTML in a target window Lucy Javascript 6 01-01-2004 07:07 PM



Advertisments