> 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 window.
>
> I have tried ajaxonload(), javascript onload, $('#docload').
> ready(function(), etc.
>
> They all seem to execute before the actual end of the process.
>
> Is there a way around this? Any help on this would be greatly
> appreciated.
I solved the problem by using setTimeout(function(){ insert_javascript_here
},0); from within the page I was loading in the popup. Calling an external
function was executing at the wrong time, but using setTimeout like this with a
timeout of 0 milliseconds works like I needed it to. Hope this helps someone
someday.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353350
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm