Hello Megha. Somehow I missed your respond, sorry. And thanks for responding. I can not provide a test server at this moment. But using the build in browser and navigating to www.google.com it does exact same thing. On Google's index page (not mobile but regular) do not type anything in the input text box and click "Google Search" and you will see that page gets submitted. However, next time the same action does not work. Form is not submitted to the server anymore. unless I put something in the text box, so I assume this is intended functionality. Please, if anybody has any idea about this please post here. I will keep on checking to this thread constantly. Thank you.
On Dec 2 2008, 4:18 am, vivek <[email protected]> wrote: > Hi, > > We are not able to submit forms using <input type="submit"> in > android browser. The java script submit for the form is not working. > if we click the submit option the the form does not get submitted, > whereas if we enter values in text fields and then click the submit > option the form gets submitted. > > On Oct 4, 2:07 am, "Megha Joshi" <[email protected]> wrote: > > > Could you try this in the android Browser and let us know if it works.... If > > you can send a test server link for us to reproduce this issue..it will be > > more helpful. > > > 2008/10/2 AJ <[email protected]> > > > > Hi there, > > > My Android application has to useweband I am having a problem with > > > submitting forms. > > > I am using WebView for displayingwebpages. > > > So here is the description of the problem, which I was not able to > > > solve. > > > I created awebpage called messages.php. > > > This page has awebform on it and the "method" attribute is set to > > > "POST": > > > <form id="showdetails" action="http://my.devserver.com/ > > > showDetails.php <http://my.devserver.com/showDetails.php>" method="POST"> > > > <input type="hidden" name="id" value="123"> > > > <input type="hidden" name="another_id" value="456"> > > > <input type="submit" name="Submit"> > > > </form> > > > > When I click on "Submit" button and check my log file on the server I > > > see thatwebserver received GET request instead of POST. > > > Removing the "action" attribute fixes the problem, but I really need > > > to be able submitting forms to different pages. > > > > Android code is as follows: > > > public void onCreate(Bundle icicle) { > > > super.onCreate(icicle); > > > setContentView(R.layout.view_replies); > > > webView = (WebView) findViewById(R.id.web_view); > > > webView.getSettings().setJavaScriptEnabled(true); > > > webView.loadUrl(" > > >http://my.devserver.com/android/messages.php"); > > > webView.requestFocus(); > > > } > > > } > > > > Perhaps I am I forgetting some setting for webView or something like > > > that..?? > > > I appreciate any help on this. > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

