|
Mailing Lists
|
Home /
Groups /
Ajax
Problem debugging ajaxCFC app
I've recently started working on an app that makes use of ajaxCFC andRick Root 05/24/06 10:37 A Do you get as far as seeing the loading message?Kenneth S. Redler 05/24/06 05:09 P yeah actually I ended up modifying the engine.js to output some alertRick Root 05/25/06 08:41 A I've recently started working on an app that makes use of ajaxCFC and I've got it partially working. Ie, my basic functions work. However, I've got one function that produces an object error alert in IE and a Syntax Error alert in Firefox. Nothing is written to the firefox javascript debugger. here's the function giving me trouble: function fundCodeSearch(searchType,q,status) { // send data to CF alert(1); DWRUtil.useLoadingMessage(); DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'fundCodeSearch', searchType, q, status, r_fundCodeSearch); alert(2); } I get the "2" alert box at about the same time as a the Syntax Error popup alert, which implies that something is going wrong with the _execute() function. the r_fundCodeSearch function is never called (it contains nothing but an alert), and the coldfusion method fundCodeSearch is never accessed - I added a cflog statement to it and nothing is logged.. no errors. Help! Rick Do you get as far as seeing the loading message? -- Ken ----- Excess quoted text cut - see Original Post for more ----- yeah actually I ended up modifying the engine.js to output some alert messages, and that helped me track down where it was happening. Then I removed the try/catch/finally functionality out of that particular section to see the actually javascript error in firefox.. which helped me to discover some errant text in my cfc OUTSIDE of the <cffunction> tags... Then I undid all the changes to engine.js =) I'm all good now. Rick
|
May 17, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||