Hello everyone.
I am observing interesting behavior when using WebView to display HTML
forms.
The description of the problem is little confusing, but I am trying to
make it as short, and as understandable as possible.
Here is the description of the problem.
1) I have a web page called example.php with a form in it like this.
<html>
<head>
<title>Example</title>
</head>
<body>
<form id="example_form" action="http://mydomain.com/example.php"
method="POST">
<input type="text" name="example_input">
<input type="submit" name="Do Post Request">
</form>
</body>
</html>
3) I also have the WebView browser = (WebView)findViewById
(R.id.webkit); which works just fine when loading pages with
browser.loadURL("http"//mydomain.com/example.php")
2) I also want to handle all the link clicks on the page (if any)
inside my G1 application, therefore I have overridden
shouldOverrideUrlLoading(Webview view, String url), returning true
from the method.
3) When I click on "Do Post Request" button inside my G1 app, it
makes the post request to http://mydomain.com/example.php and loads
the bage right back, so I can see the same form again.
4) INTERESTING PART: If I click the "Do Post Request" button again,
G1 does not make requests to the server, unless I put something in the
input box. Does this have anything to do with cashing or am I missing
something?
Thanks a lot in advance for any ideas!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---