On Sat, Jul 11, 2009 at 7:34 PM, alecs<[email protected]> wrote: > Hi! I think it's more web development question than django question, > but hope someone can advice me. > I have a table with checkboxes. Each <tr> contains different > information about files (filename, filesize, url, etc). > Below this table I have three(or maybe more) buttons to perform > different actions with selected (using checkbox) files : delete them, > send by email and so on. So can you recommend me how to be with > buttons? Use jquery and submit form and add to post something like > button name? Are there any better ways? Thanks :)
One possibiliry: <input type="submit" name="submit" value="Delete" /> <input type="submit" name="submit" value="Mail" /> <input type="submit" name="submit" value="Frobnicate" /> Then in your view, check the value of request.POST['submit'] -- Met vriendelijke groet, Dennis Kaarsemaker --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

