PDA

View Full Version : Getting error as "Ext.Error: You're trying to decode an invalid JSON String:"



pladhe
21 Jan 2014, 11:27 PM
Hi,

On my page i am submitting a form. After submission of form at backend I execute webservice and webservice returns xml response. This xml returns failure response and I display appropriate message on my page.

Above operation works fine on Firefox 21 and all next versions but it fails on Firefox 20.0 and i get error as follows,

Ext.Error: You're trying to decode an invalid JSON String: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Firefox 20.0 is not able to handle failure response from webservice.

jay@moduscreate.com
23 Jan 2014, 10:16 AM
... Are you trying to parse XML as JSON?

pladhe
23 Jan 2014, 9:32 PM
After parsing xml, i am sending JSON response on view page. xml is returning failure message.