It can be a chore to determine what is going wrong with your application when using ExtJS.
For starters, you are expecting the nice debugging errors you get out of ColdFusion. You do not get that.
Instead you get a blank screen and so you know whatever you changed no longer works.
So what do you do?
First, make sure you are testing with Firefox and have installed Firebug.
Then turn on Firebug.
Select console and select errors. This should tell you what the problem is and it will give you the line number that the bug relates to.
Usually I unsave my last group of changes and it works again! But, now you know what line of functionality to investigate.
The problem could be your call to your form submit.cfm or your cfc.
If you want to know what is happening with your calls go to the net tab. Select xhr and it will show you whether you made any calls to your cfc. If so, look at the post and see what is being sent to your application. Is this what you expected. If there is an error in your code and CF returns back error messages you will see them in the HTML tag.
You may need to dump some of your variables. You are not going to see the cfc page so you need to dump those variables to a page. This is how you do that:
I hope this provides some help. You are not alone. See my post about determining what to pass back to ExtJS. It may also provide some help.
No comments:
Post a Comment