Progress dialog + dialog box
<p>I have a webview that has progress dialog showing: </p>

<pre><code>public void onLoadResource (WebView view, String url) {
    if (progressDialog == null) 
    {
        progressDialog = new ProgressDialog(activity);
        progressDialog.setMessage("Loading... ");
        progressDialog.show();
    }
}
</code></pre>

<p>The page i'm loading has a button controlled by javascript that has a dialog box: </p>

<pre><code>function confirmation() {
    var answer = confirm("Are You sure?")
    if (answer) {
        alert("No information saved!")
        window.history.go(-2);
    }
    else {
        alert("You may hit save to submit information")
    }
}
</code></pre>

<p>The issue is when i hit this button, nothing ever happens. If I remove the progress dialog. The button functions very well. I added </p>

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

<p>But there's no luck at all. Have anyone encountered this? How do I solve it?</p>
