RSS Feed

Safari not passing parameters with prototype Ajax.request (and Ajax.updater)

Posted on Tuesday, April 11, 2006 in General

It turns out that safari needs the method option in an ajax call to be lowercase


new Ajax.updater({success: 'response', form.action, {
  method: form.action,
  parameters: Form.serialize(form),
}):

make that


new Ajax.updater({success: 'response', form.action, {
  method: form.action.toLowerCase(),
  parameters: Form.serialize(form),
}):

and all should be peachy.

Comments are closed for this entry.