RE: javascript delete function wih struts

2004-03-10 Thread Brian Lee
te", other times it would be the default value. BAL From: "Qinjian Jian" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: javascript delete function wih struts Date: Wed, 10 Mar 2004 14:29:48 -0500 Do it like this: function

RE: javascript delete function wih struts

2004-03-10 Thread Shahak.Nagiel
Like I said, I'm rusty! :-) Regards, Shahak -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 2:32 PM To: [EMAIL PROTECTED] Subject: RE: javascript delete function wih struts I think you meant to say: if (window.confirm("Ar

RE: javascript delete function wih struts

2004-03-10 Thread Craig Tataryn
I think you meant to say: if (window.confirm("Are you sure you want to " + target) == true) Craig On Wed, 10 Mar 2004 14:20:27 -0500, [EMAIL PROTECTED] wrote: > > My JavaScript is rusty, but something along the lines of: > > function set(target) { > > if ("Are you sure you want to "

RE: javascript delete function wih struts

2004-03-10 Thread Qinjian Jian
Do it like this: function set(target) { var agree = false; agree = confirm("Are you sure you want to delete?"); if ( agree ) { document.forms[0].dispatch.value=target; } } Hope this is helpful Tim Jian -Original Message- From: as as [mailto:[EMAIL PRO

RE: javascript delete function wih struts

2004-03-10 Thread Shahak.Nagiel
My JavaScript is rusty, but something along the lines of: function set(target) { if ("Are you sure you want to " + target) == true) { document.forms[0].dispatch.value=target; document.forms[0].submit(); } } -Original Message- From:

[OT] RE: javascript delete function wih struts

2004-03-10 Thread Wendy Smoak
> From: as as [mailto:[EMAIL PROTECTED] > I want to show a pop up (delete confirmation in my page) when > user clicks on delete button.The pop up will show "Are you > sure you want to delte-yes or no" > If user clicks on yes, then my page should set a page > variable names "dispatch" to "delete