The form action works for iphone, blackberry.
However not happy in the droid build.
Using format below
form action="mailto:xxxx@xxxx.com" method="post" enctype="text/plain"
However a couple of my friends who downloaded the app are saying it isn't working on their droid phones? Is there a work around for this?
Thanks
Seth
However not happy in the droid build.
Using format below
form action="mailto:xxxx@xxxx.com" method="post" enctype="text/plain"
However a couple of my friends who downloaded the app are saying it isn't working on their droid phones? Is there a work around for this?
Thanks
Seth
- 6 Posts
- 0 Reply Likes
Posted 9 years ago
- 139 Posts
- 15 Reply Likes
Instead of integrating it into the action attribute of the form, have you tried setting it directly on an href in an anchor tag, or, if you need the form, in your case add it to the form's submit button's onclick handler?
In PhoneGap, there is no server-side backend to POST to, so I am not sure what a form POST really translates to.
I know for a fact setting up an anchor tag with a mailto: href will open up your default mail client on Android phones.
In PhoneGap, there is no server-side backend to POST to, so I am not sure what a form POST really translates to.
I know for a fact setting up an anchor tag with a mailto: href will open up your default mail client on Android phones.
- 6 Posts
- 0 Reply Likes
Thanks,
I do need the form data but will move it to the submit button.
I wonder why it worked on the other phones... hmmmm
I do need the form data but will move it to the submit button.
I wonder why it worked on the other phones... hmmmm
- 139 Posts
- 15 Reply Likes
I think the other platforms know to map the classic client/server post-back model to something that makes a bit more sense in terms of a WebView loading a local page on a device.
- 6 Posts
- 0 Reply Likes
Is there come clever way to do a mailto: without opening up the mail client on Android?
The href works but having embed the form data into that href tag just doesn't seem to be the best way to do this.
I have lots of data i want to send and I know I am going to make my fair share of mistakes with missing data
Thanks
The href works but having embed the form data into that href tag just doesn't seem to be the best way to do this.
I have lots of data i want to send and I know I am going to make my fair share of mistakes with missing data
Thanks
- 1941 Posts
- 89 Reply Likes
Does the data have to be emailed? Another suggestion would be to XHR POST the data to a server. (Though I'm a bit hesitant to suggest this idea but you could also have that server send out the email).
Hardeep Shoker
Hardeep Shoker
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


