Can't do that.
You could make the delete button a form submit button, using _javascript_,
then on the form handler page, test your cfif block, delete whatever, then
cflocation yourself back to the original page...
Ray
>I've been working on this all morning and I am missing something. I have a
>delete button on a page and I want a _javascript_ Confirm box to pop up.
>
>I am trying to assign a variable in the _javascript_ and then Test that script
>in my <CFIF>. This works fine until I add the confirmation box.
>
>
>I declare the variable
><CFPARAM NAME="confirm_delete_presentation" Default="false">
>
>
>Here is my _javascript_
>
>function delete_presentation()
>{
> confirm_delete_presentation= confirm("Do you really want to delete this
>presentation??");
> }
>
>Here is my <CFIF>
>
><CFIF IsDefined("form.delete.x") and badFlags EQ "" and
>confirm_delete_presentation EQ "true">
>-- Script to do the deleting
></CFIF>
>
>
>and finally my button
>
><INPUT TYPE="image" NAME="delete" SRC="" ALT="Delete
>Presentation" > >
>Any hints?
>
>Thanks!
>Brett
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

