On Apr 17, 2008, at 11:36 AM, jklcom99 wrote: > > Yes, you are correct. Prototype is being used to perform the ajax > call. The > funny thing is this is working if it points to my old .m2 > repository. I've > since create a new fresh .m2 repository, Stripes isn't behaving as > before. > This is a snippets of the ajax call: > > function invokeRemove(form, event, container) { > var params = Form.serialize(form); > if(event != null) params = event + '&' + params; > new Ajax.Updater(container, form.action, { method:'post', > postBody:params > }); > showResult(); > }
Yea, the problem is that this isn't necessarily consistent on your responses, it may vary by browser, or other things. Some Ajax forms work, other don't. Very infuriating. But quite readily explained. The problem is with Prototype, not Stripes. Now, could someone clarify if this fixes the problem? Changing from: if(event != null) params = event + '&' + params; to: if(event != null) params = _eventName=event + '&' + params; I know we chatted about this, just don't know if it works. Another thing to do is "fix" prototype. In 1.5 (dunno about 1.6, but the issue is the same), in the serialize method (easy enough to find), I changed: if (value != null) { to if (value != null && element.type != 'submit') { and that fixed the problem for me. If the _eventName thing works, guaranteed, I'd switch back to that, as I'd rather not "fork" prototype. Regards, Will Hartung ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users