Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
Ahh, I see. Well thanks for explaining the issue. |
|
|
Hey jfty, sorry it took me so long to reply, not keeping enough of an eye on this page. Hopefully you see this - if not... oh well. The problem with your suggestion is that confirmation boxes need to be synchronous. They're returning information to the script (Yes or No), so they have to freeze the browser and wait for user input before the script can proceed. As far as I know... there's no way to do this other than the browsers native methods (i.e. the existing confirm() box) - I'm fairly inexperienced in JS so if someone knows a way.... please do tell. I thought of maybe hanging the script with a loop while the confirm box waits for a user respose, but I'm pretty sure that'd cause the button EventListeners to hang as well. And loops can be dodgy things to work with. |
|
|
Hmm...this is quite cool. Wouldn't it be better to add support for the other kinds of boxes (confirmation boxes, etc.) but keep the buttons intact? I dunno, just a suggestion. |
|
|
Sorry sorry sorry... I did actually test in Firefox, just accidentally uploaded older copy. Script updated now. Thanks again Mikado for correcting my submissions, I'd be useless without you. ;D |
|
|
Seems that author only tested it on Opera. |
|
|
Doesn't seem to work. Tried it on W3Schools' demos. |