#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    4
    Rep Power
    0

    Javascript Confirm Box with Cold Fusion


    <script language="JavaScript" type="text/JavaScript">
    VAR Input_box = confirm ("Are you sure you want to delete this note?");
    if (input_box == false)
    {
    Javascript: window.history.go(-1);
    }

    if (input_box == true)
    {
    <CFSTOREDPROC datasource="#Application.PTS_DSN#" procedure="budget_track.del_note">
    <CFPROCPARAM cfsqltype="CF_SQL_INTEGER" dbvarname="v_note_seq" TYPE="IN" value="#note_id#">
    <CFPROCPARAM cfsqltype="CF_SQL_VARCHAR" dbvarname="v_usr" TYPE="IN" Value="#session.UserLogin#">
    </CFSTOREDPROC>

    }
    </script>
  2. #2
  3. No Profile Picture
    Hopeless Romantic
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    Australia
    Posts
    30
    Rep Power
    14
    That isn't going to work. Try redirecting the user to another page that contains the cfstoredproc calls if the input box returns true.
    ...better lives have been lived in the margins, locked in the prisons and lost on the gallows than have ever been enshrined in palaces.

IMN logo majestic logo threadwatch logo seochat tools logo