Problem debugging ajaxCFC app

View: New views
3 Messages — Rating Filter:   Alert me  

Problem debugging ajaxCFC app

by Rick Root :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:47:2579
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/47
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:47
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Problem debugging ajaxCFC app

by Kenneth S. Redler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you get as far as seeing the loading message?

  -- Ken

On 5/24/06, Rick Root <rick.root@...> wrote:

>
> 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
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:47:2581
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/47
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:47
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Problem debugging ajaxCFC app

by Rick Root :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:47:2596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/47
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:47
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54