08-05-2012 12:52 PM
Hello! I am developing a apps for playbook, but I don't found the way to make a form that works with ajax (do not with php as I have configured) ,when the user sent his data, this show a page of thanks, and send the information to my mail, Someone who can help me, I'll be very grateful
08-05-2012 01:42 PM
Do you have a piece of source you can add here to figure out where the problem is, Ajax or PHP.
08-05-2012 09:16 PM
My code is in PHP, but I want to do in Ajax, to run client-side, attach sent my code
<form action="processForm.php" method="post" data-transition="pop">
<div data-role="fieldcontain">
<label for="senderName">Tu nombre</label>
<input type="text" name="senderName" id="senderName">
</div>
<div data-role="fieldcontain">
<label for="senderEmail">Tu E-mail:</label>
<input type="email" name="senderEmail" id="senderEmail">
</div>
<div data-role="fieldcontain">
<label for="message">Comentarios</label>
<textarea name="message" id="message" placeholder="Por favor escribe algo" required="required" cols="80" rows="10" maxlength="10000"></textarea>
</div>
<input type="submit" name="sendMessage" id="sendMessage" value="Send Email">
</form>
08-06-2012 01:46 AM - edited 08-06-2012 01:46 AM
So you need to learn Ajax, isn't it? I think there is a huge list of tutorials out there using Google. This one could be a starting point: http://www.queness.com/post/160/create-a-ajax-base
In 3. Javascript replace the
//this is the php file that processes the data and send mail url: "process.php",
with the url you are using
url: "processForm.php",
and remember to do a remote call to your server, so the url should contain the domain-name/ip to work together with your server.
08-06-2012 11:32 AM
Thanks a lot!
08-06-2012 12:42 PM
NP. Hope you get/got it working in every case! Leave a message if not.
08-06-2012 01:45 PM
Hello, in the case a playbook tablet , if I don't have a server to manage the Php request, how can I configure this form, to receive mail from user?, thanks
08-06-2012 02:17 PM
panchopepe wrote:
Hello, in the case a playbook tablet , if I don't have a server to manage the Php request, how can I configure this form, to receive mail from user?, thanks
Mhh. I think sending emails from within an app isn't quite possible but maybe you can invoke the email application? Have a closer look to the invoke API and perhaps search for invoking email app here in the forum or have a closer look to this thread: http://supportforums.blackberry.com/t5/Web-and-Web