J
jab3
Hello. I'm wondering if someone can answer something I'm sure has been
answered a thousand times before. I am apparently just too dumb to
find the answer. I've found information about the 'onstop' event,
but it's not behaving as expected. (And it also seems to be a
proprietary attribute) That is, my defined function is not being run
when I click stop. I've 'inserted' it like this:
<body onstop="stopped_clicked()">
And the function just grabs the id of the content div, then changes the
innerHTML. Except that's not what happens. Nothing happens.
Oh, about the question. I'm trying to determine if the user clicks the
stop button during a post send, basically. Specifically, if a user is
uploading a file to my server, and they click stop at some point, I
need to be able to tell the server that stop was clicked, so it doesn't
think that's the whole file. I've noticed that an error message is
written to the Apache log, but that seems like a strange way to keep
track of user-interrupted events. (Note: this is Apache/mod_perl
server-side)
I guess what I'm thinking now is that JavaScript detects the stop
(since it is client-side), then sends a message to the server that an
error occurred, or something. Like I said, the onstop event is not
doing what I'm expecting, and Firefox doesn't like it anyway, not to
metion the other browsers out there. So my question is what's the
"idiom" or "standard way" of detecting this sort of situation. I'm
quite certain I'm not the first one to need it. It just seems I'm one
of the ones who has to ask.
Thanks for any help,
jab3
answered a thousand times before. I am apparently just too dumb to
find the answer. I've found information about the 'onstop' event,
but it's not behaving as expected. (And it also seems to be a
proprietary attribute) That is, my defined function is not being run
when I click stop. I've 'inserted' it like this:
<body onstop="stopped_clicked()">
And the function just grabs the id of the content div, then changes the
innerHTML. Except that's not what happens. Nothing happens.
Oh, about the question. I'm trying to determine if the user clicks the
stop button during a post send, basically. Specifically, if a user is
uploading a file to my server, and they click stop at some point, I
need to be able to tell the server that stop was clicked, so it doesn't
think that's the whole file. I've noticed that an error message is
written to the Apache log, but that seems like a strange way to keep
track of user-interrupted events. (Note: this is Apache/mod_perl
server-side)
I guess what I'm thinking now is that JavaScript detects the stop
(since it is client-side), then sends a message to the server that an
error occurred, or something. Like I said, the onstop event is not
doing what I'm expecting, and Firefox doesn't like it anyway, not to
metion the other browsers out there. So my question is what's the
"idiom" or "standard way" of detecting this sort of situation. I'm
quite certain I'm not the first one to need it. It just seems I'm one
of the ones who has to ask.
Thanks for any help,
jab3