House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Ajax

Problem debugging ajaxCFC app

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
05/24/2006 10:37 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kenneth S. Redler
05/24/2006 05:09 PM

Do you get as far as seeing the loading message?   -- Ken ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
05/25/2006 08:41 AM

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


<< Previous Thread Today's Threads Next Thread >>

Search ajax

May 17, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference