|
Posted by Jerry Stuckle on 10/22/07 20:11
Fester Bestertester wrote:
> Jerry Stuckle wrote:
>
>> Nope. There is nothing you can do in PHP (which is server side) to
>> prevent the user from performing client-side functions such as closing
>> a window.
>>
>> But that also should not be considered an error. It should be
>> considered normal operation, and your script should handle it nicely.
>
> Thanks for responding. As I stated in my other response, I suppose it's
> like any other web app. If the user clicks the browser's 'x' button
> before clicking the submit button, the changes are lost. That's the way
> our hr web/db app works.
>
> But, as you state, "...your script should handle it nicely." I'm not
> sure, how would this work exactly? Would it plant a cookie and show the
> user a message?
>
>
Well, for instance, don't put in 1/2 an update when they click the first
window, then expect to finish the update when they click on the second
window. Wait until all the data is present, then insert it.
And don't laugh - I've seen this done before!
And like you said - just let them know if they don't finish, the data
will not be updated.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|