#43 ✓invalid
Douglas Fraser

IE6 - click created Control.window href problem

Reported by Douglas Fraser | January 15th, 2009 @ 09:28 AM | in 1.0

I have a Control.Window exactly like the Centered Window / Content on Page example on livepipe.net. In IE6, the code fails to find the div with the content and so ends up creating a blank hidden window. The problem lies in this line of window.js:

var rel = this.href.match(/^#(.+)$/);

in Control.Window.initialize

In IE6, the line before it

this.href = this.container.readAttribute('href');

returns the full url of the associated A tag - not just the part in the href='#..' attribute.

So this.href = /

not

this.href =

and so the match fails

I changed the match line to

var rel = this.href.match(/^.*#(.+)$/);

and that should cover all the bases no matter what browser is in use

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

NOTE: Please do not open tickets here. If you have an issue, please open it on http://github.com/syntacticx/livepipe-ui/issues/

High quality widgets and controls for web 2.0 applications built using the Prototype JavaScript Framework. Each control is well tested, highly extensible, fully documented and degrades gracefully for non JavaScript enabled browsers where possible. MIT licensed and actively maintained.

People watching this ticket

Pages