> Ahhh!  Too much info!

>Translation:  I don't understand... (scurries off to hard-code
>the dsn names in his cfc's...)

Panic not! Bottom line: you've run into the "issue" of hitting a component
directly over http - the component is instantiated every time you hit it and
so the instance can't be persisted in your application/server scope, etc.
I.e. if you could, you might do something like this in ColdFusion:

<cfset application.myComponentInstance = createObject('component',
'myCfc').init(dsn) />

Two solutions:

1. Use a proxy cfc. Looks like Ray has written a blogpost taylored for you:
http://www.coldfusionjedi.com/index.cfm/2008/1/22/Ask-a-Jedi-AjaxProxy-and-Application-Scoped-CFCs

2. Use your cf app's framework as the proxy - i.e. handle it like any other
request and spit out the result in a format your js is expecting.

HTH

Dominic


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to