bo***********@gmail.com 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.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/