BJTAWJ / webclient-mobile-for-ca-plex

Automatically exported from code.google.com/p/webclient-mobile-for-ca-plex
0 stars 0 forks source link

SearchField producing Console error when Enter key pressed #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add Search field to a Grid function
2. Generate source and BuildPlex
3. Run app in Chrome focus on Search field and press Enter

What is the expected output? What do you see instead?
- Runs as expected from user interface but produces an error in the Chrome 
developer console as follows:

Uncaught SyntaxError: Unexpected token ILLEGAL
    Ext.util.JSON.decode                            sencha-touch-debug-w-comments.js:23504
    Ext.Ajax.request.callback                       sencha-touch-debug-w-comments.js:40444
    Ext.data.Connection.Ext.extend.onComplete       sencha-touch-debug-w-comments.js:27711
    Ext.data.Connection.Ext.extend.onStateChange    sencha-touch-debug-w-comments.js:27658
    (anonymous function)                            sencha-touch-debug-w-comments.js:5078

What version of the product are you using? On what operating system?
- Copy of the WebClient i+ as packaged in the tutorial for conference.

Please provide any additional information below.

- Related Sencha Touch issue could be 
http://www.sencha.com/forum/showthread.php?105481-CLOSED-Ext.util.JSON.decode()-
fails 

Original issue reported on code.google.com by darryl.m...@radmt.com on 26 Jun 2011 at 10:28

GoogleCodeExporter commented 8 years ago
The console error could be due to a component not being found. I received the 
same error in the application when a SingleFetch function had not been 
generated and imported into the webapp.

Debugging through the console is not the best way to solve issues like this. Is 
there another method of tracing the source of the problem? Would have preferred 
the system to throw an exception with meaningful data - such as the token and 
parse string.

Original comment by darryl.m...@radmt.com on 28 Jun 2011 at 11:32

GoogleCodeExporter commented 8 years ago
Darryl - Maybe Joshua Kerns or Mark will have some better advice,  but for 
debugging, I have been using Google Chrome, Ctrl-Shift-J to step through the 
java script. 

Original comment by jdrhodes...@gmail.com on 28 Jun 2011 at 11:51

GoogleCodeExporter commented 8 years ago
Thanks for the tip - have used it extensively today

Original comment by darryl.m...@radmt.com on 29 Jun 2011 at 4:23

GoogleCodeExporter commented 8 years ago
This error was caused by the panel automatically submitting the form, resulting 
in the request parameters not being set correctly.  WebClient would return an 
HTML response rather than a JSON response, which is why the JSON would not 
parse correctly.

This issue should now be resolved in trunk.

Original comment by j...@jkerns.com on 29 Jun 2011 at 5:26

GoogleCodeExporter commented 8 years ago
Hi

Could someone please tell me how they fixed this issue?

I can't suss out what is happening with my Ext.Ajax.request ... initially I was 
getting the json object returned but now I am getting the Uncaught SyntaxError

Uncaught SyntaxError: Unexpected end of input
Ext.util.JSON.decodesencha-touch-debug-w-comments.js:23504
Ext.Ajax.request.successnewfile.php:21
Ext.data.Connection.Ext.extend.onCompletesencha-touch-debug-w-comments.js:27674
Ext.data.Connection.Ext.extend.onStateChangesencha-touch-debug-w-comments.js:276
58
(anonymous function)

any hints or tips would be greatly appreciated

Thanks

Original comment by mk.kelly...@gmail.com on 1 Nov 2011 at 4:30