Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does it only do POSTs that are in the document's onload handler, or also things that are in onclick? I think that the latter could be dangerous

<a href="#" onclick="$.post(etc)">Delete</a>



Why would you let an anonymous visitor to delete a data just by clicking a link?


The obvious example is a wiki.


The implicit expected behaviour of clicking a link is that of a GET - i.e. not updating or deleting data. Delete actions should be a POST submit on a form.


In theory, theory and practice are the same. In practice, they are not.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: