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.

open control.window dynamically only works with Fade = true

#4

Hello. I'm trying to move from the old Control.Model to the new Control.Window and i'm having troubles with simple windows that I want to open dinamically.

The following example only works when "fade: true" is on the options:


<a href="#" onClick="openMyWindow('http://www.google.com');">Click to
open Google in an Iframe</a>
<a href="#" id="dummyA" />
<script>
 function openMyWindow(url) {
       $('dummyA').href = url;
       var myWindow = new Control.Window($('dummyA'),{
           className: 'simple_window',
           closeOnClick: true,
           fade: true,  // ths is the line, but I don't want to fade!
           iframe: true
       });
       myWindow.open();
 }
</script>

Also, once opened with fade, it takes several clicks to close it. This did not happen before with Control.Modal.

How can I solve it? Thanks!

Jose.

Reported by Ryan Johnson · June 13th, 2008 @ 11:29 AM

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

Activity

  1. Nathan L Smith
    Nathan L Smith
    • Tag set to control.modal, control.window
    • State changed from unconfirmed to confirmed

    May 18th, 2009 @ 08:02 PM

  2. Nathan L Smith

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.