Re: Internet Explorer JavaScript Weirdness



Prisoner at War wrote:
I have a JavaScript search engine that always causes MSIE 7 to do a
top-of-page security "warning" (that top-of-page-bar, and not an
"alert" [dialog box])...but other websites' JavaScripts do not trigger
that...what's going on? When I visit other JavaScript sites there's
no warning and the scripts work fine, but mine (it's still under
construction, offline) occasions that warning and I have to manually
allow MSIE to run JavaScript every new session of MSIE....

The "JavaScript" search engine (MSIE 7, like all MSHTML-based UAs, provides
JScript instead) uses an ActiveX/COM object that is deemed insecure by MSIE
7. The other sites that you have checked either do not or they are defined
to be in another Security Zone where less restrictions apply.

This is no guessing game at all. Post some code or the URL of your search
engine.

http://jibbering.com/faq/

Also (nothing to do with JavaScript, but I might as well ask, in case
it helps any), I have an animated .jpg that refuses to load in MSIE 7
though Opera 9 and Firefox 2 display that perfectly.

There are no "animated .jpg", unless the resource name suffix is not
indicative of the file format in your case (bad idea with MSIE). JPEG is
not an image format that allows animation (short of progressive rendering),
you have to use GIF89a or MNG for that (alas, the latter only with limited
support).


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
.



Relevant Pages

  • Internet Explorer JavaScript Weirdness
    ... When I visit other JavaScript sites there's ... offline) occasions that warning and I have to manually ... allow MSIE to run JavaScript every new session of MSIE.... ...
    (comp.lang.javascript)
  • Re: corrections
    ... I would speculate that it was because of a demand to use javascript to compensate for browser's varying CSS support. ... Sometimes, one may want to use a stylesheet only for, say, MSIE 6 and another stylesheet for MSIE 7. ... This can be logical, possible, since both MSIE 6 and MSIE 7 are used by a lot of internet users and since MSIE 7 has fixed a lot of CSS bugs. ... This leads now to several CSS hacks failing. ...
    (comp.lang.javascript)
  • Re: Experiences with FreeRTOS?
    ... looks like less than 0.2% of visitors have javascript off. ... MSIE 6 - 55% ... Opera 9.10 - 1% ... But with FF, it's a matter of clicking on the browser's little red "update" icon, downloading a three or four MB, and restarting the browser - regardless of the system. ...
    (comp.arch.embedded)
  • Re: onFocus and onClick for Submit Button
    ... I ran the javascript through javascriptlint.com/ ... One thing I've noticed is that if a user gets a security warning after ... Any comments/suggestions/help will be tremendously appreciated. ... Probably because you left out the definition of the blur function ...
    (comp.lang.javascript)
  • Re: Fire firefox?
    ... Msie but not Firefox. ... I presume it is already in the FAQ, so perhaps it would help if we ... occasionally use javascript. ... If there is a rule that every time before posting I MUST use at least ...
    (comp.lang.javascript)