Google Answers Logo
View Question
 
Q: Prototype in Javascript Question ( No Answer,   0 Comments )
Question  
Subject: Prototype in Javascript Question
Category: Computers > Programming
Asked by: rallyitup-ga
List Price: $10.00
Posted: 24 Jun 2006 16:03 PDT
Expires: 25 Jun 2006 05:53 PDT
Question ID: 740824
Hi, I'm trying to implement AJAX forms using Prototype 1.4 with
multiple forms in the page.  I'm passing the variable webformAction
through the Javascript, and it works great when I'm just using the
form to hit other pages on my server.  However, it breaks when I try
to pass a full URL to another site.  This may just be a newbie
Javascript error or something that needs tweaking in Prototype.  Help!
 Thanks.


Here's the Javascript:
<script src="prototype-1.3.1.js" type="text/javascript"></script>
<script type="text/javascript">
function send(commentsForm, updateDiv, webformAction){
	var params = Form.serialize($(commentsForm));
	new Ajax.Updater(updateDiv, webformAction, {asynchronous:true,
parameters:params});
}
</script>

Here's one of my little forms:

<div id="VA08"><form id="Bob"><select name="salutation">
	<option value="Mr." selected="selected">Mr.</option>

	<option value="Mrs.">Mrs.</option>

	<option value="Ms.">Ms.</option>
	<option value="Dr.">Dr.</option>
</select><br><br><input name="sendbutton" value="Send"
onclick="send('VA08', 'Bob',
'http://moran.house.gov/feedback_process.moran.cfm');"
type="button"></form></div>
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy