Re: DIV-based "window popups": Cross-browser issue.
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Fri, 02 Jan 2009 23:39:35 +0100
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
.
- References:
- DIV-based "window popups": Cross-browser issue.
- From: Joel A. Villarreal Bertoldi
- DIV-based "window popups": Cross-browser issue.
- Prev by Date: Re: Internet Explorer "conditional compilation is turned off"
- Next by Date: Re: 5.1 How do I format a Number as a String with exactly 2 decimal places?
- Previous by thread: Re: DIV-based "window popups": Cross-browser issue.
- Next by thread: Re: Internet Explorer "conditional compilation is turned off"
- Index(es):
Relevant Pages
|