| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
meathead
Join Date: Jul 2001
Location: Toronto
Posts: 169
|
Is it possible to return more than one result from a cfm page into flash?
here's a sample of whats on the cfm page Code:
<cfif loginQuery.recordcount lt 1> <cfset flash.result = error> <cfelse> <cfset flash.result = cf_uname> <cfset flash.anotherVar = "something"> </cfif> Code:
function flashlogin_Result(message) {
trace(message);
trace(anotherVar);
}
How do I bring in "anotherVar" into flash as well? this is probably really simple, and I will slap myself when I get the answer so don't hesitate to answer Chris |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Oct 2002
Posts: 13
|
to tell you the truth, i'm new to Flash remoting and haven't even really looked at coldfusion at all but i think the answer is to return an object that has both values.
I don't know what the code for that in coldfusion would be but i'd imagine that this is the corresponding result code: function flashlogin_Result(message) { trace(message.var1); trace(message.var2); } |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|