2008/6/23 Peter Melvyn <[EMAIL PROTECTED]>: > > > I have a list of records, and I'd like the user to be able to delete > > any given record by pressing a button. > > IMHO there are two basic solutions: > > 1. each record has column with hyperlink to delete action (ID is part of > URL) > You can use plain text or image mapped links
Having a GET request delete records is usually a bad idea - see for example http://www.w3.org/2001/tag/doc/whenToUseGet.html If the request has side effects, a POST should be used, for example the original form idea. Another idea is to have a single form with only a hidden ID input - then a link for each item could use javascript to set the correct ID and submit the form. I'm sure there are other javascript contraptions that could accomplish the same, but any such approach would of course require javascript in the client. /Emil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---