This topic is locked

Pop-Up window not working

11/13/2013 12:28:24 PM
ASPRunnerPro General questions
K
kleanthis author

I have the following code in the before delete event, but the popup window is not working.

Pls help
if deleted_values("DateFormat") > FormatDateTime(Date, 2) then

BeforeDelete = True

else

BeforeDelete = False
end if

admin 11/13/2013

In BeforeDelete event you need to use different approach.

if deleted_values("DateFormat") > FormatDateTime(Date, 2) then

BeforeDelete = True

else

BeforeDelete = False

message="<script>alert('I\'m a popup window')</script>"

end if
K
kleanthis author 11/13/2013

I try it but is still not working! I have asprunner 7.2.



In BeforeDelete event you need to use different approach.

if deleted_values("DateFormat") > FormatDateTime(Date, 2) then

BeforeDelete = True

else

BeforeDelete = False

message="<script>alert('I\'m a popup window')</script>"

end if


admin 11/13/2013

I have tested it in ASPRunnerPro 7.2 and it worked. I didn't add any conditions to event code, just simply assigned a value to message variable.