#4 ✓invalid
Ryan Johnson

open control.window dynamically only works with Fade = true

Reported by Ryan Johnson | June 13th, 2008 @ 11:29 AM | in 1.0

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.

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