Hi all, This is certainly an amateur inquiry and I appreciate your insight. I'm currently looking to do some form submission which will then do serverside database queries, etc. As of right now, I just want to get the initial prototype library working. It looks like the following code does not want to trigger 'forgot.php' and return the echo statement which I've put in. Here's a sample:
/* tooltip.php */ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="../javascripts/prototype.js"></script> </head> <body> <div id="updateDiv"> <form id="frmForgot"> <span style="font-size: 7pt;">Enter your username or email address and we will email you with further instructions.</span> <input type="text" name="txtForgot"><br> <input type="button" name="btnForgot" value="Go" onClick="send();"> </form> </div> <script type="text/javascript"> function send() { var params = Form.serialize($('frmForgot')); new Ajax.Updater('updateDiv', 'forgot.php', {asynchronous:true, parameters:params} ); } </script> </body> </form> </html> /* forgot.php */ <?php echo "Prototype rocks!"; ?> Thank you kindly for any insight. - sf --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
