Closed Thread Icon

Topic awaiting preservation: custom confirm box buttons Pages that link to <a href="https://ozoneasylum.com/backlink?for=8382" title="Pages that link to Topic awaiting preservation: custom confirm box buttons" rel="nofollow" >Topic awaiting preservation: custom confirm box buttons\

 
Author Thread
slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 11-09-2002 00:37

the default buttons are 'OK' and 'Cancel'. Can we specify our own text on the buttons like 'yes' and 'no' or whatever?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-09-2002 00:58

Nope.

JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 11-09-2002 06:00

that's a good one

slim, you mean like "submit reply" and "clear fields"? Nope.

Jason

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-09-2002 06:05

Oh, Form buttons can be changed. But I believe he's referring to the buttons on the dialog created by the JavaScript confirm() function. Those can't.

There is a way to launch a modal dialog in IE with window.open, and you can put whatever you want in it. But other browsers won't treat it as modal, so it's dangerous to rely on.

eSoTIX
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2002

posted posted 11-10-2002 04:57

One get-around would be to create a layer which pops up (instead of the confirm box) when whatever action is executed. Then you can make the layer to whatever style(s) that suits your preference.

JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 11-10-2002 05:54

whoopsie, I should've realized something was wrong with my thinking when I thought Slime was being sarcastic, and hilarious.

(

andy_j
Nervous Wreck (II) Inmate

From: uk
Insane since: Aug 2002

posted posted 11-11-2002 04:10

Interesting.. I made this script a few weeks ago to build a custom alert box. The idea was to start out by making it resemble a windows alert and then once it was working, work on the styling... never got round to finishing it though..

The idea, could easily be adapted to a confirm box though as suggested earlier



slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 11-11-2002 05:18

thanx all.

« BackwardsOnwards »

Show Forum Drop Down Menu