[Proto-Scripty] Re: not send data in URL?
> That sort of thing. But I'd use a form and add an observer on the > submit. This would allow for graceful degradation. OK - thanks, Geoff -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Re: not send data in URL?
On 20 July 2010 20:58, geoffcox wrote: > >> You could have to create a form with am for each >> unit and folder and a bit of JS to turn an into a form submitter - >> or just use a button. >> >> If you want to use ajax, then the same mechanism - create the form, >> but use an ajax submitter to process the forms. > > Thanks for your reply. > > Isn't it possible to pass the unit and folder data to JavaScript and > then use something like > > var params = ({ > unit: unit_given, > folder: folder_given > }); > > new Ajax.Request('send.php', > { > method:'post', parameters: params, > > etc? > > Cheers > > Geoff That sort of thing. But I'd use a form and add an observer on the submit. This would allow for graceful degradation. -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: not send data in URL?
> You could have to create a form with am for each > unit and folder and a bit of JS to turn an into a form submitter - > or just use a button. > > If you want to use ajax, then the same mechanism - create the form, > but use an ajax submitter to process the forms. Thanks for your reply. Isn't it possible to pass the unit and folder data to JavaScript and then use something like var params = ({ unit: unit_given, folder: folder_given }); new Ajax.Request('send.php', { method:'post', parameters: params, etc? Cheers Geoff -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.