Re: IE not loading script?




<ellaiah.pusa@xxxxxxxxx> wrote in message news:4bfddd0c-f8d8-4080-b6fd-12ce80db52ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
stumps me too.


On Apr 23, 4:33 pm, Tony <23.t...@xxxxxxxxx> wrote:
I have a select with an onchange - it works find in Firefox, but in IE
6 I get an error: Object Expected.

I have simplified things drastically, and still get the error.

The HTML:

<select name="viewtrain" id="viewtrain" onchange="viewDetails(this);">
<option value="1">Train 1</option>
<option value="2">Train 2</option>
<option value="3">Train 3</option>
</select>

and the javascript:

function viewDetails(sel)
{
alert('hi');

}

For some reason, this fails. But if I replace viewDetails with an
alert:
<select name="viewtrain" id="viewtrain" onchange="alert(this);">
everything works correctly.

For some reason, it seems that IE isn't 'seeing' viewDetails.

-
OK I did a bit more checking before posting, and it seems that the js
file isn't loading at all - but only in IE. I can't imagine why.
here's the source:

<script type="text/javascript" src="js/CalendarPopup.js"></script>
<script type="text/javascript" src="js/details.js"></script>
<script type="text/javascript">
ACTIVE_SECTION = 'Late Trains Details';
</script>

The stuff before and after works fine. Only details.js is not loading
- and only in IE.

I'm stumped on this one...

Is it because you're calling details.js but the actual file is called Details.js with a capital?

Andy

.



Relevant Pages

  • Re: IE not loading script?
    ... and the javascript: ... For some reason, it seems that IE isn't 'seeing' viewDetails. ... file isn't loading at all - but only in IE. ...
    (comp.lang.javascript)
  • IE not loading script?
    ... I have a select with an onchange - it works find in Firefox, ... For some reason, it seems that IE isn't 'seeing' viewDetails. ... file isn't loading at all - but only in IE. ...
    (comp.lang.javascript)
  • Re: Does php slow your website down
    ... writtent 50% in html and 50% in php and is very slow at loading. ... And i cant tell wether php is doing it or html o is it another reason ...
    (comp.lang.php)
  • Re: Does php slow your website down
    ... writtent 50% in html and 50% in php and is very slow at loading. ... And i cant tell wether php is doing it or html o is it another reason ...
    (comp.lang.php)
  • Re: Does php slow your website down
    ... writtent 50% in html and 50% in php and is very slow at loading. ... And i cant tell wether php is doing it or html o is it another reason ...
    (comp.lang.php)