|
Posted by Jerry Stuckle on 05/24/07 04:24
Geoff Berrow wrote:
> Message-ID: <256ei4-s96.ln1@ophelia.g5n.co.uk> from Toby A Inkster
> contained the following:
>
>>> What am I missing? It's javascript that appends the 'sure' variable to
>>> the URL and without that delete.php won't do anything.
>> As I said, when ($_GET['sure']==1) is false, delete.php should display an
>> "are you sure?" form. (And although I didn't explicitly state it, I meant
>> that that form should not require Javascript.)
>
> But if delete.php is going to handle it like that (and indeed that's how
> I'd do it) the Javascript is redundant. It just makes it a little
> quicker for people with JS enabled, which is, I'll grant you good use of
> JS, but hardly worth the effort in this case IMO.
>
Actually, I think Toby has the right idea. It is worth it to make it
easier for those who have javascript.
Javascript is a great tool - but all pages should degrade gracefully if
it is not enabled. And Toby's method does just that.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|