Android Javascript form submit working on 2.1-update1, but not 2.2 and above
<p>I have an activity where I use a webview with an android buttons below it. I load a web html form in the webview. Instead of having a submit button in the html form I have placed the following simple javascript function in the page:</p>

<p><code>function submitFrm() { 
    document.listupdate.submit();
}</code></p>

<p>In my activity an android button triggers the javascript and the form submits. Works like a charm in Android 2.1-update1, but it will not work on 2.2 or above. Like I said this does already work on Android 2.1-update1. Can anyone bring me up to speed as to why, and what changes I need to implement?</p>

<pre><code>upDtListingtBtn.setOnClickListener(new Button.OnClickListener(){ 
  @Override  
  public void onClick(View v) {  
    webView = (WebView) findViewById(R.id.listinginfowebview);  
    **webView.loadUrl("javascript:submitFrm()");**  
    progressDialog = ProgressDialog.show(ListingInfoActivity.this, "", "Updating...");  
    new Thread() {  
    public void run() {  
    try{  
    sleep(2000);  
    } catch (Exception e) {  
    }  
    progressDialog.dismiss();  
    }  
    }.start();  
}});  
</code></pre>

<p>And yes javascript is enabled - it works in 2.1update1!</p>

<pre><code>webView.getSettings().setJavaScriptEnabled(true);
</code></pre>

<p>The rest of the code block, as you can see just runs a dummy progressDailog.</p>
