1

I know that how to call a Javascript function from Android's webview. To call javascript function I've to use the following syntax.

WebView.loadUrl("javascript:my_javascript_func();");

But if I try to call a jquery function defined in $(document).ready(function(){}); area then it through "Uncaught ReferenceErro: my_jquery_func is not defined at null:1"

Where my_jquery_func() is the name of my jquery function.

I've searched enough but could not get any example of calling jQuery function from Android by using webview.

I can see a similar post here: Call jQuery function in Android's WebView from Java?

but it couldn't help me.

Thanks,

1
  • I found the answer. Almost the same problems has been described in the following link but since there were no exact answer that's why I posted this question again. stackoverflow.com/questions/8893964/… The poster of that question(yshrsmz) has solved it and gave a detail of the solution upon my request. I think that link would be helpful. Thanks -Mushfique Commented Feb 8, 2014 at 5:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.