I'm trying to create a JavaScript object that can be called to load a page from a remote site. The page is behind SiteMinder security (and thus needs to honor cookies) so I can't use the WinHTTP or MSXML objects (like I thought I could).
The only browser support required is IE 6. The code I have works: it generates a new iFrame, populates it with a form and posts the form. My problem is in determining when the results are done downloading. I can access readyState on the iFrame, but I can't figure out how to keep checking it for completeness without returning from the object method. (You normally have to have several cooperating functions to check this - one sets an timer to check and the other calls the first if the call isn't complete.) However I want to do this in a single object (or function) that calls the data and doesn't return until the data is available. A simple loop like: while (iframe.readyState != "complete") { }; This just pegs the CPU and crashes the container. Any ideas on this? Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - New Atlanta http://www.newatlanta.com Message: http://www.houseoffusion.com/lists.cfm/link=i:5:141463 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54