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 use web and I am having a problem with > > submitting forms. > > I am using WebView for displaying web pages. > > So here is the description of the problem, which I was not able to > > solve. > > I created a web page called messages.php. > > This page has a web form 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 that web server 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 -~----------~----~----~----~------~----~------~--~---

