Hi,
I am using PHP Runner 4.0
I am wondering what I would need to do to implement the alert and confirm functionality simliar to what the "validate" routines do - e.g. pop up a "do you want to delete these records" confirm box.
I am finding that if I embed "echo <script> ......alert() ....... </script>" in my code, it will not work. It will pop up an alert but the page goes blank until I click OK. I believe (but am not 100% sure) this is due to the fact that the event code is running on the server and the javascript is being execute by my browser on the client.
One example is that I have an application where the user enters payments received. The customer may owe $100, when entering the record of a receipt, the user may enter $110, I want to pop up a box that reads "You are entering a receipt higher than the amount owed. Are you sure?", then they hit "Yes" or "No" and I process accordinly....
Any ideas from anyone as to how to handle such situations would be greatly appreciated.
Thanks.