of cases I've got delete actions for numerous things, whether it be users,
articles, images, whatever ... so it definately comes in handier in that
situaiton.
Andy
Quoting Adrian Lynch <[EMAIL PROTECTED]>:
> I'd have to disagree with this one. I'm all for reusable code but I think in
> this instance it's not needed. I guess if the URL is being changed from that
> of the action attribute of the form then maybe it's ok, but other than that
> I'd rather just have the code in the onclick of the button/form tag.
>
> Ade
>
> -----Original Message-----
> From: Andy Allan [mailto:[EMAIL PROTECTED]
> Sent: 26 August 2004 12:52
> To: CF-Talk
> Subject: RE: _javascript_ delete confirmation
>
>
> Yup, definately shorter but not as reusable. Fire the function I posted into
> a
> commonfunctions .js file, and have it included in your page and you can use
> it
> any time you need.
>
> Andy
>
> Quoting Adrian Lynch <[EMAIL PROTECTED]>:
>
> > Or a shorter inline version...
> >
> > <input type="submit" name="submit" value="Delete" > > > confirm('You sure?')" />
> >
> > Ade
> >
> > -----Original Message-----
> > From: Andy Allan [mailto:[EMAIL PROTECTED]
> > Sent: 26 August 2004 11:22
> > To: CF-Talk
> > Subject: Re: _javascript_ delete confirmation
> >
> >
> > function confirmDelete(aURL) {
> > if(confirm("Do you really want to delete?"))
> > document.location=aURL;
> > }
> >
> > Andy
> >
> > Quoting Thane Sherrington <[EMAIL PROTECTED]>:
> >
> > > I know I've seen this on the list before, but I can't find it in the
> > > archives, and my mind is pulling a blank on this. How do I pop up a
> > > _javascript_ yes/no pop up when someone clicks on a delete button to
> delete
> > a
> > > record?
> > >
> > > T
> > >
> > >
> >
> > --
> > [EMAIL PROTECTED]
> > www.creative-restraint.co.uk
> >
> >
> >
> >
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

