Re: [Catalyst] how to confirm before deleteing
On Wed, Jan 21, 2009 at 05:23:12AM -0800, Paul Falbe wrote: > > I writting my first little Catalyst app and need todo a delete function. I > have a link for users to delete a row in a sqlite table. My question is > what is the prefered rocess for asking "You selected delete. Do you really > want todo this?". This thread has been beat to death, but one other point: What do *you* think the vast majority of times you click "Delete" and are then asked "Do you really want to delete?" Of course I want to delete it, that's why I clicked that big fat delete button. The javascript confirmation is easy, and I do it all the time, but when not so lazy and the action lends itself I provide an undelete option afterwards for those rare "oops" times. -- Bill Moseley mose...@hank.org Sent from my iMutt ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] how to confirm before deleteing
On Wed, Jan 21, 2009 at 10:22 AM, Simon Wilcox wrote: > Dave Howorth wrote: > >> Paul Falbe wrote: >> >>> That works thank you very much. Don't know how many google searchs I did >>> trying to find that out! >>> >> >> Rodrigo-51 wrote: >>> Paul, how about a javascript confirm() box? >>> >> ... and if the user has Javascript disabled? >> > > Or if you have some like Google's ill-fated prefetch running, caching all > the links it finds on a page ? > > GETing a link should really only be used when the action is idempotent. If > it changes stuff then you ought to use a POST via a form button. > > YES! There are rare cases where a get may enable consequences, but this is not one of them. This both checks if the user really wants to delete (if js is enabled) and also uses a post to delete data via the app. -- Thanks! Wade Stuart Phone: 917-363-6164 IM: SpaceMuscles ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] how to confirm before deleteing
Dave Howorth wrote: Paul Falbe wrote: That works thank you very much. Don't know how many google searchs I did trying to find that out! Rodrigo-51 wrote: Paul, how about a javascript confirm() box? ... and if the user has Javascript disabled? Or if you have some like Google's ill-fated prefetch running, caching all the links it finds on a page ? GETing a link should really only be used when the action is idempotent. If it changes stuff then you ought to use a POST via a form button. S. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] how to confirm before deleteing
On Wed, Jan 21, 2009 at 06:19:06AM -0800, Paul Falbe wrote: > > That works thank you very much. Don't know how many google searchs I did > trying to find that out! Yes, but if the user has JS disabled, you have a problem. What I typically do is have two separate actions, a "delete" and a "do_delete". The "delete" action merely displays the record and has a form (link, whatever) asking "Are you sure?", and then if they agree, you perform the "do_delete" that does the business. You could also have a single delete action but with a "confirm" parameter signalling that you're really deleting, etc. There are lots of options. You can pair this with JS if you want. Best, Jesse Sheidlower > Rodrigo-51 wrote: > > > > Paul, how about a javascript confirm() box? > > > > > > yourcontroller/delete/row_id Delete > > Row > > > > > > cheers, > > -rodrigo > > > > On Wed, Jan 21, 2009 at 2:23 PM, Paul Falbe wrote: > > > >> > >> I writting my first little Catalyst app and need todo a delete function. > >> I > >> have a link for users to delete a row in a sqlite table. My question is > >> what is the prefered rocess for asking "You selected delete. Do you > >> really > >> want todo this?". > >> > >> Thanks in advance! > >> > >> -Paul > >> -- > >> View this message in context: > >> http://www.nabble.com/how-to-confirm-before-deleteing-tp21583057p21583057.html > >> Sent from the Catalyst Web Framework mailing list archive at Nabble.com. > >> > >> > >> ___ > >> List: Catalyst@lists.scsys.co.uk > >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > >> Searchable archive: > >> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > >> Dev site: http://dev.catalyst.perl.org/ > >> > > > > ___ > > List: Catalyst@lists.scsys.co.uk > > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > > Searchable archive: > > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > > Dev site: http://dev.catalyst.perl.org/ > > > > > > -- > View this message in context: > http://www.nabble.com/how-to-confirm-before-deleteing-tp21583057p21583988.html > Sent from the Catalyst Web Framework mailing list archive at Nabble.com. > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] how to confirm before deleteing
Paul Falbe wrote: > That works thank you very much. Don't know how many google searchs I did > trying to find that out! > Rodrigo-51 wrote: >> Paul, how about a javascript confirm() box? ... and if the user has Javascript disabled? Doh! ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] how to confirm before deleteing
That works thank you very much. Don't know how many google searchs I did trying to find that out! Rodrigo-51 wrote: > > Paul, how about a javascript confirm() box? > > > yourcontroller/delete/row_id Delete > Row > > > cheers, > -rodrigo > > On Wed, Jan 21, 2009 at 2:23 PM, Paul Falbe wrote: > >> >> I writting my first little Catalyst app and need todo a delete function. >> I >> have a link for users to delete a row in a sqlite table. My question is >> what is the prefered rocess for asking "You selected delete. Do you >> really >> want todo this?". >> >> Thanks in advance! >> >> -Paul >> -- >> View this message in context: >> http://www.nabble.com/how-to-confirm-before-deleteing-tp21583057p21583057.html >> Sent from the Catalyst Web Framework mailing list archive at Nabble.com. >> >> >> ___ >> List: Catalyst@lists.scsys.co.uk >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: >> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.org/ >> > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > > -- View this message in context: http://www.nabble.com/how-to-confirm-before-deleteing-tp21583057p21583988.html Sent from the Catalyst Web Framework mailing list archive at Nabble.com. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] how to confirm before deleteing
Paul, how about a javascript confirm() box? Delete Row cheers, -rodrigo On Wed, Jan 21, 2009 at 2:23 PM, Paul Falbe wrote: > > I writting my first little Catalyst app and need todo a delete function. I > have a link for users to delete a row in a sqlite table. My question is > what is the prefered rocess for asking "You selected delete. Do you really > want todo this?". > > Thanks in advance! > > -Paul > -- > View this message in context: > http://www.nabble.com/how-to-confirm-before-deleteing-tp21583057p21583057.html > Sent from the Catalyst Web Framework mailing list archive at Nabble.com. > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] how to confirm before deleteing
I writting my first little Catalyst app and need todo a delete function. I have a link for users to delete a row in a sqlite table. My question is what is the prefered rocess for asking "You selected delete. Do you really want todo this?". Thanks in advance! -Paul -- View this message in context: http://www.nabble.com/how-to-confirm-before-deleteing-tp21583057p21583057.html Sent from the Catalyst Web Framework mailing list archive at Nabble.com. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/