possible 'non javascript' delete confirmation?
On my imageghost site, registered users' images are stored to their individual accounts, so they can log in and use the gallery and access their images and links at any time they want.
I have just implemented a delete link function for removal of individual images but want a confirmation of some kind that ask "are you sure you want to delete this image" - yes or no.
Now, with javascript I have the code to implement a confirmation popup on clicking the "delete image" link before the image is deleted (yes or no option)
But I am concerned for the users who may have javascript disabled.
Is there any way around this? PHP, html etc that will do the same job?
I have searched the 'net and found nothing other than Javascript
Cheers!
webwiz posted this at 00:32 — 13th June 2007.
He has: 629 posts
Joined: May 2007
Sadly, I don't have any code to offer you. But if you have used phpMyAdmin to handle your databases, you will notice their "confirm delete" message when you try to drop a table. This is probably what you should aim for.
Although statistics suggest only about 4% have scripting turned off, JS pop-ups increasingly do not work because of the popularity of pop-up blockers.
Cordially, David
(whose sig keeps vanishing)
--
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
Renegade posted this at 20:59 — 13th June 2007.
He has: 3,022 posts
Joined: Oct 2002
You could always direct to a page which asks if they want to confirm their action instead of using Javascript.
greg posted this at 19:58 — 19th June 2007.
He has: 1,581 posts
Joined: Nov 2005
Thanks for the suggestions.
I have thought of the redirect to confirmation page option, but opening a new page to confirm deleting, clicking a link, waiting for the image to delete then going back to the previous page is perhaps a long winded process if users want to delete a few images.
Even for one image it is long winded.
I was hoping for an alternative, but I do not know of another way of pop-up options without using javascript, or even another way of activating a response required by clicking a link and having different actions depending on the users selection.
I also thought of using a form in some way, but that must be a sloppy way of going about it.
hmm. Looks like a redirect page is the only option.
Which is more scripting as I would like to give the users who have javascript the option of the simple pop-up confirmation.
Cheers
Renegade posted this at 20:53 — 19th June 2007.
He has: 3,022 posts
Joined: Oct 2002
Well, if you'd like to use a form, you could always have an option like a dropdown box or a check box which the user has to select in order to delete. E.g.
Delete selected? (dropdown option)
[Delete]
[ ] Delete selected (check box) [Delete]
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.