Re: IE not loading script?
- From: "Andrew Bailey" <andy@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Apr 2008 08:59:06 GMT
<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
.
- Follow-Ups:
- Re: IE not loading script?
- From: Tony
- Re: IE not loading script?
- References:
- IE not loading script?
- From: Tony
- Re: IE not loading script?
- From: ellaiah.pusa@xxxxxxxxx
- IE not loading script?
- Prev by Date: Re: Need of a code snipet which converts mm/dd/yy to dd/mm/yy
- Next by Date: Re: setting footer of a html page without changing pagesetup
- Previous by thread: Re: IE not loading script?
- Next by thread: Re: IE not loading script?
- Index(es):
Relevant Pages
|