Re: DIV-based "window popups": Cross-browser issue.



Joel A. Villarreal Bertoldi wrote:
I've written my own library to generate "window popups" using DIV's,
with drag&resize support enabled. It works perfectly under Firefox 3,
but IE7 doesn't like it. The window can only be rendered and closed,
no drag nor resize working.

The source code for it it's located here:
http://pastebin.com/m2426c814

<blockquote>

_getBrowser:
function() {
if (document.all)
return "IE";
else if (document.getElementById)
return "FF";
else
return false;
},

</blockquote>

This method indicates object inference; deprecated, error-prone late
20th-century coding style (and the tabs instead of few spaces, and the lack
of braces don't make it easier to read either). Use feature testing
instead, and block statements, and see if that helps.

<http://PointedEars.de/scripts/test/whatami#inference>

*************.com

Please don't spam here. Use properly delimited signatures to refer to your
plain Web site, if necessary.


PointedEars
.



Relevant Pages

  • Re: about:blank problem
    ... When hitting an URL from an email message, Firefox opens the ... window but two seconds later, IE7 opens an about:blank window. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: IE7 stability -- lose it or use it?
    ... If you don't have a cat, ... figured out why IE7 would open everything in a new window and not a ... I am now back to IE7 and am happy as heck. ... I have used Firefox for a long while before IE7 came out and I did like it, ...
    (microsoft.public.windowsxp.general)
  • Re: RiscPC going - suggestions for a replacement?
    ... page in a new window. ... in both Firefox and IE7. ... I need to use do not function properly under RISC OS anyway. ...
    (comp.sys.acorn.misc)
  • Re: RiscPC going - suggestions for a replacement?
    ... window in both Firefox and IE7. ... depending on your choice of where new ...
    (comp.sys.acorn.misc)
  • about:blank problem
    ... When hitting an URL from an email message, Firefox opens the ... window but two seconds later, IE7 opens an about:blank window. ...
    (microsoft.public.windowsxp.help_and_support)