View Full Version : hi, i wanna print my query to textarea!
hi everybody. i am developing code with coldfusion and i get queries from SQL normally.
But now i wanna get query to my Flash , textarea with action script. I can fill textarea with const file such as "a.txt" . It is ok. But i wanna fill it with my dynamic queries.
So, what can I do ?
thanx
anyone knows?
please help me? i need to this:confused:
inhan
07-03-2007, 06:54 AM
I'm not positive but as far as I know you need a server side script (like php) to gather data from a database and transmit it to Flash.
i have a book whose author is Ben Forta.
i've looked for getting query results for ActionScript but I don't understand it. It is a bit confuse.
in coldfusion there is no problem about getting query result, writing query result. But, when i wanna to send my queries to actionscript i encounter a problem. "undefined"
<cfquery name="get_content_for_flash" datasource="#dsn#">
SELECT * FROM CONTENT WHERE CONTENT_ID = #attributes.cntid#
</cfquery>
<cfset FLASH.result = get_content_for_flash>
then, in actionscript :
thisText = new LoadVars();
var record = result.getItemAt(0);
thisText.onLoad = function(success) {
if (success) {
TextHolder.text = record.CONT_BODY
}
};
what can i do?
help pls..
i dont believe anybody knows this.
interesting
inhan
07-03-2007, 08:16 PM
getItemAt is a ComboBox method afaik.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.