talhazafar / jquery-spellchecker

Automatically exported from code.google.com/p/jquery-spellchecker
0 stars 0 forks source link

JSON ParserError on 'addToDictionary' functionality. #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Type poorly spelled words in a text box
2. Click "Check Spelling"
3. Click a word in the suggest box
4. Click "Ignore Forever"
5. Click Confirm on "Are you sure" box

What is the expected output? What do you see instead?
Expected: Words are added to the dictionary and no longer show up as misspelled

Actual: Words are added to the dictionary, but "Sorry, there was an error 
processing the request" alert pops up.

What version of the product are you using? On what operating system?
r142

Please provide any additional information below.

In order to troubleshoot, I added XHR, status, and error (as defined in the 
function on 348 of jquery.spellchecker.js) and I get Invalid JSON: Array and 
parsererror as the errors.

Nothing I've done to tweak either the javascript or the spellchecking.php seems 
to solve it, so I'm sure it's something over my head especially since JSON 
isn't my forte. 

This is especially frustrating since it seems to be FUNCTIONING 100% properly. 
I have no issues whats-so-ever with any of it properly working, but this error 
is really driving me crazy. I've resorted to simply commenting out the error 
alert until I get an idea of a quick-fix or a new release that might solve this 
issue.

Thanks!

Original issue reported on code.google.com by brifrey...@gmail.com on 25 Aug 2011 at 9:47

GoogleCodeExporter commented 9 years ago
As an added note: As I stated in my "Actual" case, the word is properly added 
to the dictionary, the error pops up, but the word no longer shows up as 
misspelled, so like I said, it's working fine, but there is a JSON error 
stopping it from presenting the script with a proper callback.

Original comment by brifrey...@gmail.com on 25 Aug 2011 at 9:49

GoogleCodeExporter commented 9 years ago
I'm sorry.. the function as I stated in additional information appears to be on 
line 336, not 348.

Original comment by brifrey...@gmail.com on 25 Aug 2011 at 9:53

GoogleCodeExporter commented 9 years ago
This should fix that.

Original comment by petr.vo...@gmail.com on 21 Nov 2011 at 3:17

Attachments:

GoogleCodeExporter commented 9 years ago
This should fix that (do it in consistent way).

Original comment by petr.vo...@gmail.com on 21 Nov 2011 at 3:21

Attachments:

GoogleCodeExporter commented 9 years ago
Great

[http://wisentechnologies.com/it-courses/javascript-training-in-chennai.aspx 
Online JavaScript Training]
[http://wisentechnologies.com/it-courses/javascript-training-in-chennai.aspx 
Online JavaScript Training From India]

Original comment by gym.prat...@gmail.com on 10 Dec 2014 at 7:41