I have a form that submits user entered text from two different pages. In one page it is a regular form submit back to itself. In the other page, a javascript function uses Ajax.Updater to submit the form to a different page. When the form is submitted via Ajax.Updater plus (+) signs in the value of one of the fields are lost. The function that submits the form is:
function validateMenuTypeForm(aForm) { aForm.action = ''; var opt = { // Use Asynchronous asynchronous: true, // Use POST method: 'post', // Send this lovely data postBody: 'ID=' + aForm.ID.value + '&Name=' + aForm.Name.value + '&Description=' + aForm.Description.value + '&Tracking_Type_ID=' + aForm.Tracking_Type_ID.value + '&Script=' + aForm.Script.value + '&CSS=' + aForm.CSS.value + '&Generation_Code=' + aForm.Generation_Code.value , // Handle successful response onSuccess: function(t) { get_MenuType_Select(t.responseText); }, // Handle 404 on404: function(t) { window.alert('Error 404: location "' + t.statusText + '" was not found.'); }, // Handle other errors onFailure: function(t) { window.alert('Error ' + t.status + ' -- ' + t.statusText); } } window.alert(opt.postBody); new Ajax.Updater('div_message','/inc/menu/set-menu-menutype- form.php',opt); new Effect.Shrink('div_form_menutype_panel'); return false; } I put the window.alert in the function to see if opt.postBody had the plus (+) signs in it before the call to Ajax.Updater, which it did. This is worrisome. Is there some documentation on which characters Ajax.updater will pass through and whch ones it will drop? Please respond to [EMAIL PROTECTED] Thank you in advance. Respectfully, Robert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---