EasyCFM.COM ColdFusion Forums / Coding Help! / CFWindow Timing Issue

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: CFWindow Timing Issue

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

steubing
12-03-2012 @ 10:40 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Member
Posts:
Joined: Dec 2012

I am incorporating CFWindow and coldfusion.window
functions into my site and have them working very well
except for one issue.  I would like to execute some
javascript after the cfwindow fully opens but
everything I am doing appears to execute after the
popup appears but before the coldfusion page loads into
the new popup.

I have tried ajaxonload(), javascript onload,
$('#docload').ready(function(),
ColdFusion.Window.onShow('mywin'); etc.

They all seem to execute before the actual end of the
loading process.

Is there a way to execute javascript after the page is
completely done?  Any help on this would be greatly
appreciated.

Webmaster
12-03-2012 @ 1:22 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

SetTimeout an option?

<InvalidTag language="JavaScript">

   setTimeout( function(){
                  ColdFusion.Window.onShow('mywin');
               }, 5000);

</script>

Pablo Varando
Senior Application Architect
EasyCFM.COM, LLC.

904.483.1457 \\ mobile
webmaster@easycfm.com \\email

\m/ (>.<) \m/
--- rock on ---

This message was edited by Webmaster on 12-3-12 @ 1:24 PM

steubing
12-03-2012 @ 2:11 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Member
Posts:
Joined: Dec 2012

Yep, that solved it.  Thanks.


Website Designed and Developed by Pablo Varando.