can noone help me?

2010/9/17 Marco Alexander Schmitz <[email protected]>

> hi,
>
> I'd like to call a JavaScript function out of Java.
>
> Well, the following source code works fine for me (http://
> whyandroid.com/android/206-using-webviews.html):
>
>   /**
>    * This is not called on the UI thread. Post a runnable to invoke
>    * loadUrl on the UI thread.
>    */
>    public void clickOnAndroid() {
>       mHandler.post(new Runnable() {
>          public void run() {
>             mWebView.loadUrl("javascript:wave()");
>          }
>       });
>    }
>
>
> My problem now is to use a parameter for the JavaScript function.
>
> Let's assume I've got some XML (just like AJAX somehow).
>
> I need to escape it just like the iPhone / Objective-C command
> stringByEvaluatingJavaScriptFromString does.
>
> Who can help me on this?
>
> Thanks a lot,
> DaRolla
>
> PS: this link maybe helps:
> http://lexandera.com/2009/01/injecting-javascript-into-a-webview/#comments

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to