Exception Handling, Error handling with flexigrid json returns

376 views
Skip to first unread message

Cornelius Kölbel

unread,
Dec 16, 2010, 4:27:38 AM12/16/10
to flex...@googlegroups.com
Dear List,

I found an older post on the list, but unfortunately without an answer.

The url in my flexigrid definition returns a json list.

$("#user_table").flexigrid({
url : '/userview_flexi',
method: 'GET',
dataType : 'json',
...}

But calling the url might also result in an error (because the user has
no access right or whatever) and then the url returns a json object
containing this error.

Is there any way to catch this error? If not by flexigrid, but maybe by
a javascript exception handling?
Does anyone implemented such thing already?

Thanks a lot and kind regards
Cornelius

signature.asc

Marc Borgers

unread,
Dec 16, 2010, 5:03:33 AM12/16/10
to flex...@googlegroups.com

Cornelius Kölbel

unread,
Dec 16, 2010, 5:39:22 AM12/16/10
to flex...@googlegroups.com
Hi,

thanks for the reply.
I also realized, that using the preProcess functionality could also be possible, checking the returned data.

Kind regards
Cornelius
--
You received this message because you are subscribed to the Google Groups "Flexigrid for jQuery" group.
To post to this group, send email to flex...@googlegroups.com.
To unsubscribe from this group, send email to flexigrid+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flexigrid?hl=en.

signature.asc
Reply all
Reply to author
Forward
0 new messages