[OK] Loading modal before displaying another modal

Hello

i just try to make a Control.Modal in my apps

it works very well but during the loading of the page i d like to insert an image and after the loading display my page.

i ve tried to do it but it doesn t work the gif doesn t appear and i don t know how can i do it

here is my code

$$('a.modal').each(function(link) { new Control.Modal((link), { onLoad:function() { image:true; imageTemplate:new Template(' loading...'); } }); });

thanx a lot for your help

Nico .

Posted April 11th, 2007 at 7:30am by Nico

No Idea ???

Posted April 12th, 2007 at 2:15am by Nico

hello,

here is my new code $$('a.modal').each(function(link) { new Control.Modal(link, { beforeLoad: function() { return ' chargement ...'; } }); });

how can i display the indicator.gif before the datagrid which is located on the 'link' ???

thanx a lot for the answers

Nico

Posted April 12th, 2007 at 5:34am by Nico

I found it !!!!

For the people who want to make a loading modal before displaying something

here is the code for several different link

$$('a.modal').each(function(link) { new Control.Modal(link, { beforeLoad: function() { Control.Modal.open(" Chargement..."); } }); });

Posted April 12th, 2007 at 7:37am by Nico

Login or Register to Post