473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

custom Dialog Box using JavaScript

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

Aug 14 '06 #1
3 13499
bo***********@gmail.com wrote:
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
>
Boney
Aug 14 '06 #2
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",,"dialogHeig ht:30;dialogWidth:33;edge:Raised;center:Yes;help:N o;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

Aug 14 '06 #3
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/
Aug 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dzeeq | last post by:
Hi, I wonder if it's possible to replace standard text on confirm-popup buttons from 'ok' and 'cancel' to some other captions. If not, is there a way to create quickly custom dialog, with only two...
3
by: Rikkert | last post by:
I can't get my custom-made modeless dialog box (Visual C++.net Win32) to respond to clicking the close button or pressing Alt-F4. I am using the IsDialogMessage to check if messages are for my...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
4
by: LhK-Soft | last post by:
Hi, I'm active in VC++ for several years now, so I know some things (I think). Using MS-Access I store a db with lots of entries and uses the VBA techniques to export those data to e.g. HTML, XML...
1
by: rn5a | last post by:
I have created a custom control button which when clicked displays a message in the JavaScript alert dialog. I could successfully compile the VB class file into a DLL & also could add it to the...
1
by: rn5a | last post by:
I want to create a custom control that encapsulates a Button & a TextBox. When the Button is clicked, the user is asked a question using JavaScript confirm (which shows 2 buttons - 'OK' &...
0
by: rn5a | last post by:
A custom control is derived from the WebControl class & encapsulates a TextBox & a Button. When the Button is clicked, the user is shown the JavaScript confirm dialog with the 'OK' & 'Cancel'...
1
by: asharda | last post by:
I have a custom property grid. I am using custom property grid as I do not want the error messages that the propertygrid shows when abphabets are entered in interger fields. The custom property...
9
by: Gord | last post by:
In VB6, a custom dialog can be easily created by adding a new form, adding whatever controls you like, sizing it as you like, adding code and then just loading/unloading it whenever you like....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.