One technique I have occasionally used which is far simpler than a hidden frame is to use an Image object to send data back to the server. The following code (untested) sends a name/value pair from JavaScript to the server:
var tmp = new Image(); tmp.src = "captureVars.cfm?foo=bar"; You can imagine how wrapping this up in a function that takes all kinds of arguments would work out very nicely for quickly and easily sending JavaScript variables to the server. You can even go so far as to return an image from your CFM page so that the image object is valid. For information on sending binary data from CF to the browser (in this case, to JS), see these blog entries: http://www.markme.com/cantrell/archives/002658.cfm http://www.markme.com/cantrell/archives/002736.cfm Christian On Monday, June 23, 2003, at 10:06 AM, Hugo Ahlenius wrote: > I have this idea to improve the quality of a heavy DHTML/Javascript > application -- Storing some important variables (browser, OS, screen > size) > from javascript when window.onerror function is triggered. This could > be > stored in a db, or just in a log-file. (One could, onerror, trigger a > function in a hidden frame that passes these, in a request, to the > server). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

