Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / November 2007



Tip: Looking for answers? Try searching our database.

Basic questions about alert() and confirm()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
simplicity - 28 Nov 2007 15:29 GMT
I have some basic questions about alert() and confirm():

(1) Is it possible to customize the labels in the buttons, eg. put
"Yes" instead of "OK"?

(2) Is there a control over the text in the pop-up frame? I would like
to get rid of "Windows Internet Explorer" (IE) or "The page at
http://192.168.22.215:5555 says:" (Firefox) or replace it with
something meaningfull.

(BTW, the text in the frame in Firefox is not even true as the pop-up
does not originate in the server but locally).

I browsed through tens of sites but all I found is one-liners about
both functions. Well... maybe that's all that it is there...
Kailash Nadh - 28 Nov 2007 15:35 GMT
> I have some basic questions about alert() and confirm():
>
> (1) Is it possible to customize the labels in the buttons, eg. put
> "Yes" instead of "OK"?
Nope, thats not possible.

> (2) Is there a control over the text in the pop-up frame? I would like
> to get rid of "Windows Internet Explorer" (IE) or "The page athttp://192.168.22.215:5555says:" (Firefox) or replace it with
> something meaningfull.
That is not again possible (security reasons). It used to be possible
with IE, not anymore.

> (BTW, the text in the frame in Firefox is not even true as the pop-up
> does not originate in the server but locally).
>
> I browsed through tens of sites but all I found is one-liners about
> both functions. Well... maybe that's all that it is there...

You might want to take a look at Javascript 'modal dialogs'.
http://www.webreference.com/js/column90/

--
Kailash Nadh | http://kailashnadh.name
simplicity - 29 Nov 2007 01:49 GMT
> You might want to take a look at Javascript 'modal dialogs'.
> http://www.webreference.com/js/column90/

Too bad it is for IE only...
VivianAranha - 28 Nov 2007 15:47 GMT
Even though that is not possible.... you can try this

http://www.subimage.com/dhtml/subModal/

i used this thing so many places.... it works for everything... A
little bit of modification to this script and you will get all teh
controls you need...

Viv
Rick Brandt - 29 Nov 2007 04:29 GMT
> Even though that is not possible.... you can try this
>
[quoted text clipped - 5 lines]
>
> Viv

I use the same sort of thing only it is also draggable.
simplicity - 29 Nov 2007 21:11 GMT
> > Even though that is not possible.... you can try this
>
[quoted text clipped - 7 lines]
>
> I use the same sort of thing only it is also draggable.

Is there a code available for download?
Thomas 'PointedEars' Lahn - 29 Nov 2007 21:24 GMT
> Even though that is not possible.... you can try this
>
[quoted text clipped - 3 lines]
> little bit of modification to this script and you will get all teh
> controls you need...

That also does not degrade gracefully and so does not conform to
accessibility guidelines and legislation.  You are lucky if you
get away with this.

PointedEars
Signature

Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

kendalk08 - 28 Nov 2007 16:55 GMT
> I have some basic questions about alert() and confirm():
>
[quoted text clipped - 10 lines]
> I browsed through tens of sites but all I found is one-liners about
> both functions. Well... maybe that's all that it is there...

It is not possible in Javscript, but if you learn VBScript you will
find that you can. You can also mix Javascript and VBScript to make a
custom page although it is not recomended.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.