awakeFromNib
2007-Sep-06 09:07 UTC
Mobile Safari (iPhone) doesn''t work with Form.serialize()
I''m using the Form.serialize() method for attach parameters to my AJAX request, and it works in Firefox, Opera, Desktop Safari, etc. but it fails to work in Safari. Here is my code: ''form:submit'' : function() { new Ajax.Request(''ajax/addTransaction.php'', { parameters:this.serialize(), onComplete: function(transport) { var json = transport.responseText.evalJSON(true); if (json[''returnCode'']) { alert(''Submitted Successfully''); this.reset(); } }.bind(this) }) return false; }, I tried using alert() to find out values along the way on the iPhone, and I found that parameters is empty. Is this a known issue or am I missing something else crucial? Thanks Nathan --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
adriann
2007-Sep-27 07:41 UTC
Re: Mobile Safari (iPhone) doesn''t work with Form.serialize()
I have a related issue with Form.request, the form is in fact submitted, however none of the form fields or defined params are submitted with the request. On the flip-side, Ajax.Request works just fine. Can anyone advise what might be going on here, or is MobileSafari simply broken in this respect? awakeFromNib wrote:> I''m using the Form.serialize() method for attach parameters to my AJAX > request, and it works in Firefox, Opera, Desktop Safari, etc. but it > fails to work in Safari.--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---