On 10/12/2010 1:20 PM, fun and learning wrote: > Hi All - > > I am trying to do the following: > > <script language="text/javascript"> > function abc(arg1, arg2) { > <cfquery name="q" datasource=".."> > select * from table1 where col1 = arg1 > </cfquery> > .................. > } > > </script>
Not simultaneously! ColdFusion runs on the server and JavaScript runs on the client. Complete different systems with completely different memory and variables executing completely different code and completely different times. I.E. "Never will the twain, ColdFusion and JavaScript, meet." But there are plenty of ways to have JavaScript make request of ColdFusion and for ColdFusion to return JavaScript, just note that they are now working "together". ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338092 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm