Re: Adding custom events to widget
- From: slebetman <slebetman@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 02:39:15 -0800 (PST)
On Dec 30, 2:46 pm, Anthony Levensalor <anth...@xxxxxxxxxxxxxxxxxxx>
wrote:
David Mark said:
4. OT for this post, but IE7 seems not to like the
"application/javascript" type attribute. Just more of the same?
Use text/javascript or nothing.
That I do. It was another of those little experiments, except I wes
confusing myself with some of the new 1.8 (incomplete) docs I found, and
just started messing around. Notcied FireFox executed the code for me
and IE didn't, then went back to standard.
It's better to use nothing. That's because W3C defines it as "text/
javascript" so IE is behaving correctly according to standard. But
unhelpfully IETF decided to define the MIME type of javascripts as
"application/javascript". So, technically, web servers should serve
pages as content-type "application/javascript" but in HTML it should
be declared as "text/javascript" (which is actually a non-existent
MIME type according to IETF). That is why it's better to just say
<script></script>.
.
- References:
- Adding custom events to widget
- From: Anthony Levensalor
- Re: Adding custom events to widget
- From: David Mark
- Re: Adding custom events to widget
- From: Anthony Levensalor
- Adding custom events to widget
- Prev by Date: Re: Javascript newbie - Please Help
- Next by Date: Re: Javascript newbie - Please Help
- Previous by thread: Re: Adding custom events to widget
- Next by thread: Re: Adding custom events to widget
- Index(es):
Relevant Pages
|