custom Dialog Box using JavaScript

B

boney.dalwani

Hello All,

I m new to JavaScript and widely Exploring programming in js
i have a situation where in i do not want to use alert(message); /
prompt(message) kind of functionility. rather i want to contruct a
custom dailog Box.

Is it possible to construct a custom dailog Box using javascript ?

if yes, can anybody guide me through the mechanism ....

Boney
 
E

Erwin Moller

Hello All,

I m new to JavaScript and widely Exploring programming in js
i have a situation where in i do not want to use alert(message); /
prompt(message) kind of functionility. rather i want to contruct a
custom dailog Box.

Is it possible to construct a custom dailog Box using javascript ?

No, but maybe you can create a fresh window that has no location, buttons,
etc.
if yes, can anybody guide me through the mechanism ....

Just lookup window.open() for details on how to create a window without
stuff you don't like.

Regards,
Erwin Moller
 
D

diliplama

You can try with showmodaldialog of DHTML, if u like...
the dialog window will give u the alert box effeft but i am afraid, it
might work only with IE

just make buttons in the "yourpage.htm" page and that's it!

-------------------------------------------------------------------------------------------------------------------------------------------------
window.showModalDialog("yourpage.htm",,"dialogHeight:30;dialogWidth:33;edge:Raised;center:Yes;help:No;resizable:No;status:No;")
--------------------------------------------------------------------------------------------------------------------------------------------------

for more parameters info on showModalDialog visit the Window Object
Methods in the following link

http://www.w3schools.com/htmldom/dom_obj_window.asp

-Good Luck
 
R

Randy Webb

(e-mail address removed) said the following on 8/14/2006 3:30 AM:
Hello All,

I m new to JavaScript and widely Exploring programming in js
i have a situation where in i do not want to use alert(message); /
prompt(message) kind of functionility. rather i want to contruct a
custom dailog Box.

Is it possible to construct a custom dailog Box using javascript ?

Yes, you can write your own custom dialog's, they are just in-window
dialogs is all instead of being outside the window (or new windows if
you prefer to think of it that way).
if yes, can anybody guide me through the mechanism ....

Create an in page DIV tag and style it to look like you want it to look
with input elements in it. When you want to use that dialog, you call a
script function that will hide/show the dialog accordingly.

Whatever you do, don't fall into the IE-only modeless dialog or the new
window trap. Its a futile exercise.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top