This topic is locked

popup save

1/15/2008 3:25:28 PM
ASPRunnerPro General questions
K
kaled2006 author

I create a popup in before edit event to ask the person if he would like to save or not but i have a error inside my popup

script.
this is my script

Response.Write "<script>alert (you would like to continue to save?')) window.location.update; else window.location = 'data_in_edit.asp';</script>"
Sergey Kornilov admin 1/15/2008

BeforeEdit event is executed on the server while popups displayed on the client side, after all server code is processed.
If you like to ask user a question before saving a record use the same approach as "Delete selected" link.

K
kaled2006 author 1/16/2008

ok what i did is in my data_in_edit.asp I add in save button
onclick="if (confirm('Are you sure to saving data?')) return false;"
([color=#FF0000] submit();)

in the red something wrong because is not continue to saving the data I replaced with what .
need help

Sergey Kornilov admin 1/16/2008

Rafi,
post your application to Demo Account (last tab in ASPRunnerPro) and send the URL to support@xlinesoft.com along with your order number and registration email.

K
kaled2006 author 1/17/2008

I found the solution
The solution is the ***_edit.asp put the script

<script langauge=javascript>

function checkClick()

{

return confirm("*Are you sure to save*");

}
</script>


and in same line of saving button

class=buttonborder><INPUT class=button [color="#00FF00"]onClick= "return checkClick();" [/color]type=submit value=&nbsp;&nbsp;Save&nbsp;&nbsp; name=submit1></SPAN>


You have to put what is in green in the saving button

its work for me