1.6.0.2 IE Error on Insert

3 views
Skip to first unread message

ityn...@ctc.net

unread,
Jan 29, 2008, 9:29:07 AM1/29/08
to Ruby on Rails: Spinoffs
In my current project, I'm using the prototype window class found
here: http://prototype-window.xilinus.com/download.html

I've been using it up to prototype 1.6.0.1 without any problems what
so ever. However, after the recent upgrade to 1.6.0.2, I've
encountered an error in internet explorer 6 & 7.

Before I continue, here is the test case:

http://sandbox.protopository.com/samples/multi_modal.html

Steps to replicate:

Click the link "Open a modal window".

Error Message: 'style' is null or not an object (line 2252
prototype.js)

Here are my findings thus far:

1. The problem occurs in function _checkIEOverlapping in file
window.js
2. For arguments sake, I tried switching the function to be more
compliant of new version with no luck:

this.element.insert({after: '<iframe id="' + this.element.id +
'_iefix" '+
'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);"
' + 'src="javascript:false;" frameborder="0" scrolling="no"></
iframe>'});

3. This error does not occur in firefox (tested by removing the
browser check "if" statement in the checkIEOverlapping function).
4. When this error occurs in the getStyle function, the element
nodeType is 9.

I have contacted the author of this great class, but I'm a little
pushed for a deadline...

Thanks,
Ian


seb

unread,
Jan 29, 2008, 12:05:04 PM1/29/08
to Ruby on Rails: Spinoffs
Use trunk version, it works
Sorry for not answering berfore but you contact me yesteray at 10pm
and I have some contracts to honor before :)

ityn...@ctc.net

unread,
Jan 29, 2008, 12:13:54 PM1/29/08
to Ruby on Rails: Spinoffs
Thanks Seb!

Whats the repo address, can't find it on your site?

Sébastien Gruhier

unread,
Jan 29, 2008, 1:02:06 PM1/29/08
to rubyonrail...@googlegroups.com

ityn...@ctc.net

unread,
Jan 29, 2008, 1:32:18 PM1/29/08
to Ruby on Rails: Spinoffs
Just checked out the trunk and updated my test case... same result.

Any ideas?

On Jan 29, 1:02 pm, Sébastien Gruhier <sgruh...@gmail.com> wrote:
> http://svn.itseb.com/public/pwc/trunk/

zmaj

unread,
Feb 12, 2008, 9:25:45 AM2/12/08
to Ruby on Rails: Spinoffs
Same problem here.. ugrading to 1.6.0.2 on IE6 .
When i use the http://svn.itseb.com/public/pwc/trunk/
i only see a 1.5.1.1 of protottype.js in it...

Any other hotfixes for this one available ?

ityn...@ctc.net

unread,
Feb 12, 2008, 11:08:03 AM2/12/08
to Ruby on Rails: Spinoffs
zmaj,

Temporarily, I've been using the latest snapshot before the 1.6.0.2
release as it does not have any problems.

You can find the copy I'm using here: http://sandbox.protopository.com/javascripts/prototype.js.1.6.0.1

From what I understand, development of this class for 1.6.0.2 is not
going to happen... instead they will be offering prototype ui:
http://prototype-ui.com/

I'm not using the prototype ui class b/c of problems with Internet
Explorer:
http://dev.prototype-ui.com/ticket/7

As soon as the prototype ui is stable enough, I plan to port my
project to it.

On Feb 12, 9:25 am, zmaj <papic...@googlemail.com> wrote:
> Same problem here.. ugrading to 1.6.0.2 on IE6 .
> When i use thehttp://svn.itseb.com/public/pwc/trunk/

zmaj

unread,
Feb 12, 2008, 3:30:32 PM2/12/08
to Ruby on Rails: Spinoffs
itynd,
thanky you for the information i also downgraded to 1.6.0.1 and my
problem is gone for the momen.

What made me also wonder about 1.6.0.2 is that clonePosition in IE6
within large trees or nvery large nested tables
takes up to 15!! sec longer than with 1.6.0.1.
I saw the new code for IE offsetParent calculation for absolute
elements
and think it has somehow to do with this.
At the end i avoided clonePosition within large trees by wrinting my
own positioning logic.
DAMN IE stressed me all day long today .


Reply all
Reply to author
Forward
0 new messages