• Quick note - the problem with Youtube videos not embedding on the forum appears to have been fixed, thanks to ZiprHead. If you do still see problems let me know.

Problem solved. IE xhtml support shaky.

Rat

Not bored. Never bored.,
Joined
May 19, 2003
Messages
10,629
Location
Leicester, UK
So I have finally solved the problem I had in this thread. The left frame called a script. There was no reason for it to do so, rather than including the sciprt in the html, but normally call scripts.

As I was using xhtml, there are, of course, no empty elements. A script element with no content therefore, must of course be closed with a slash at the end of the tag, thus:
Code:
<script src="blah.js" />
.

Lord Emsworth wisely, it turns out, suggested that I had not closed my script tag. I though I had, so I didn't fix it. It seems, however, that IE won't take an empty script element closed with just an end slash.

Bizarrely, it doesn't have this problem with, say, image elements, or style elements that call external stylesheets.

It doesn't work as
<script src="blah.js"/>

or even the old-style simple
<script src="blah.js">

But only as
<script src="blah.js"></script>

Sorry to go on so much about such a 'minor' niggle, but sodding hell....

Bloody IE.

Cheers,
Rat.
 

Back
Top Bottom