Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

IE6 - click created Control.window href problem

#43

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

Reported by Douglas Fraser · January 15th, 2009 @ 09:28 AM

State: invalid
Milestone: 1.0
Assigned to: Ryan Johnson Ryan Johnson

Activity

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.