Home > Default > Returning error to Javascript from Webkit plugin

Returning error to Javascript from Webkit plugin

October 11Hits:0
Advertisement
Hi all,
I want to return an error and possibly error string using exception or any other means from a web kit plug-in to Java script. In the success case these functions returns NSString, NSNumber,... etc. Can some one pls. provide a sample code to return error code and/or error string, so that Java script can detect the error condition.
Thanks
Akhilesh

Answers

Found it,
[WebScriptObject throwException: @"There is an error"];

Read other 2 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.642 s.