Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-05-2006, 11:21 AM   #1
olafthelion
Registered User
 
Join Date: Sep 2006
Posts: 1
Default sendAndLoad to coldfusion problems.

Hi,

I'm attempting to place a button at the end of a flash movie that sends some variables to a .cfm page.

Flash Code
Code:
on (release) {
	testcf = new LoadVars() ;
	testcf.onload = function () {
	testcf.Score1 = score1.text;
	testcf.Score2 = score2.text;
	testcf.Score3 = score3.text;
	trace(testcf);
}
testcf.sendAndLoad("cfmail.cfm", testcf, "POST")
}
coldfusion code
Code:
<cfoutput>
<cfmail to="[email protected]" from="[email protected]" subject="Quiz Results">
#Score1#
#Score2#
#Score3#
</cfmail>
</cfoutput>
the trace in the actionscript relays this bit of information:
Score3=66%2E6666666666667&Score2=1&Score1=2&%3Ccfo utput%3E%0D%0A%3Ccfmail%20to=%22myemail%40email%2E com%22%20from%3D%22myemail%40email%2Ecom%22%20subj ect%3D%22Quiz%20Results%22%3E%0D%0A%23Score1%23%0D %0A%23Score2%23%0D%0A%23Score3%23%0D%0A%0D%0A%0D%0 A%0D%0A%3C%2Fcfmail%3E%0D%0A%0D%0A%0D%0A%0D%0A%3C% 2Fcfoutput%3E%0D%0A&onload=%5Btype%20Function%5D

But alas no email is sent, i managed to successfully send info to the same cfm page using the "send" method, but for some reason i cant see to get this producing the same results minus the new page that the send option creates.

any help much appreciated,

olaf
olafthelion is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendAndLoad problems Dave's not here Projectors and CDs 11 12-19-2005 09:29 PM
XML SendAndLoad: How to use with ColdFusion? peefoo ActionScript 1.0 (and below) 0 11-18-2005 03:17 AM
using sendAndLoad to get variables from ColdFusion Zaphodbeblebrox Server-Side Scripting 5 08-08-2005 05:40 PM
using sendAndLoad to get variables from ColdFusion Zaphodbeblebrox ActionScript 2.0 1 08-04-2005 09:47 PM
ColdFusion CharacterSet problems mekawi Server-Side Scripting 0 12-02-2003 06:39 AM


All times are GMT. The time now is 09:08 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.