Let's try this again... my last message doesnt seem to be coming through.
You can POST a form 'object' which will be in the form scope on the cf page you are posting to. I usually keep xmlhttprequests pretty simple and hardly ever post forms since I USUALLY have to write a non-js version for anything I write with JS. Keeping it simple.... I usually just use "GET" to send url vars like so... xmlHttp.open("GET", "mycfpage.cfm?messageSent=" + messageToSend, true); xmlHttp.send(null); so on the mycfpage.cfm, there will be a url variable named 'messageSend' with the value in 'messageToSend' If you show more code, I might be able to help a little more. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Sunday, November 13, 2005 6:09 PM To: CF-Talk Subject: Scope for XMLHttpRequest transmited data Hi, I'm trying to implement XMLHttpRequest in an application which send data to a CF template using the post method. The send function is: xmlhttp.send("messageSent=" + messageToSend) The CF template is called, but in which scope will it receive the messageSent variable? I've tryied form, url, none, but can't find the content of this variable. Thanks -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224056 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54