This post has been moved.
Filed under: AJAX / JavaScript, HTML / CSS
Or:
pseudocode: confirmDelete(this);
in confirmDelete: if are you sure go to this.href + ‘?delete=1′ (or &delete=1 if there already is ? in the url)
if users don’t have js they will instead see a confirmation page (because there is no ?delete=1 in the orig url)
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
Or:
pseudocode:
confirmDelete(this);
in confirmDelete:
if are you sure
go to this.href + ‘?delete=1′ (or &delete=1 if there already is ? in the url)
if users don’t have js they will instead see a confirmation page (because there is no ?delete=1 in the orig url)