Hopefully you can shed some light on this rather difficult problem I've come 
across. I have CF8 installed and was looking to leverage the built-in AJAX 
functionality but I am having issues with CF/HTML content being loaded into a 
<div> asynchronously through Prototype's Ajax.Updater call. The content being 
loaded into this <div> ideally would contain the needed CF Ajax calls but CF8 
doesn't seem to load the necessary Javascript files correctly as I always get 
"ColdFusion.Ajax is not defined". The root of the problem is Prototype's 
inability to successfully evaluate  external .js references. Prototype's 
Ajax.Updater call has an attribute called 'evalScripts' which when set to 
'true' can successfully evaluate inline JavaScript statements but has trouble 
evaluating <script src=""> references if it's contained in the content needed 
to populate the <div> element.  I was wondering if anyone can shed  some light 
and guide me towards a possible solution with this problem related to CF8's 
ajax implementation. I don't know enough under the hood of how CF8 implements 
and loads the needed .js files.

For information regarding Prototypes evalScipts issue, a Google Groups search 
results links is:
http://groups.google.com/groups/search?hl=en&q=prototype+evalScripts+external&qt_s=Search

For example, when loading a page that contains the code <cfajaximport 
tags="cfform> into a container <div> element, I get the error "ColdFusion.Ajax 
is not defined" when debugging with Firebug in FF.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287740
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