Subtle Alert Box Replacement

By lucideer Last update Aug 19, 2008 — Installed 325 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
jfty.009260 User

Ahh, I see. Well thanks for explaining the issue.

 
lucideer Script's Author

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.

 
jfty.009260 User

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.

 
lucideer Script's Author

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

 
Mikado Scriptwright

Seems that author only tested it on Opera.

 
jfty.009260 User

Doesn't seem to work. Tried it on W3Schools' demos.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel