Skip to main content
Participant
December 3, 2012
Answered

CFWindow Timing Issue

  • December 3, 2012
  • 1 reply
  • 590 views

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.

This topic has been closed for replies.
Correct answer WolfShade

Putting the JavaScript that you want to execute inside a function and then setTimeout('function()',10000) should execute the JavaScript ten seconds after the page starts to load.  This is not the case?

^_^

1 reply

WolfShade
Legend
December 3, 2012

Have you tried a JavaScript setTimeout()?

^_^

Steubing2Author
Participant
December 3, 2012

Thanks for the suggestion, but doing so executes at that same point, after the initial popup is created but before the CF page is loaded into the cfwindow.

WolfShade
WolfShadeCorrect answer
Legend
December 3, 2012

Putting the JavaScript that you want to execute inside a function and then setTimeout('function()',10000) should execute the JavaScript ten seconds after the page starts to load.  This is not the case?

^_^