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 3 13505 bo***********@g mail.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
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.h tm" page and that's it!
-------------------------------------------------------------------------------------------------------------------------------------------------
window.showModa lDialog("yourpa ge.htm",,"dialo gHeight:30;dial ogWidth:33;edge :Raised;center: Yes;help:No;res izable:No;statu s: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 bo***********@g mail.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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
buttons, returning 'true' or 'false'? Would I have to use forms to
return value from my custom dialog?
Thanx for any help.
|
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 dialog.
However, my dialog procedure doesn't seem to get a WM_DESTROY message
when I click the close button. Also, pressing Alt-F4 does not close my
application when the dialog has focus (it does terminate when my main
window or another child of...
|
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.) and would like to make the
dialog look and act like the standard MessageBox. Therefore, I would like to
put in the message section the same type of icons found in the MessageBox
dialog, such as MessageBoxIcon.Exclamation. In another post here I had...
|
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 and other kind of data.
I'm using MS-VC++6.0-Enterprise (with sp6) at NT4-Workstation (sp6a) and
MS-Access97 (from MS-Office97). Reason that I won't upgrade to latest
Office/VisualStudio is that I must ensure that any application I develop
still...
|
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 Toolbox in
Visual Web Developer 2005 Express Edition but the alert message isn't
popping up when I am implementing this control in an ASP.NET page &
clicking the Button in the ASPX page. This is the class file:
Imports System
Imports System.Web...
| |
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' & 'Cancel'). Till this
point, no problem. Initially, the TextBox is empty. The Button has a
property named 'ConfirmMessage' so that the developer using this custom
control can modify the question in the confirm dialog.
If the user clicks 'OK', I want the...
|
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' buttons. If the user
clicks 'OK', the TextBox gets populated with 'true' & if 'Cancel' is
clicked, the TextBox gets populated with 'false'. Note that when the
user first comes to the ASPX page that uses this custom control, the
TextBox is empty. This...
|
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 grid doesn't show colloections i.e. if I have a
List<Objectthen the Collection is shown but when I click on the
"..." button next to it nothing comes up.
If I say CustomPropertyGrid p = new CustomPropertyGrid();
p.SelectedObject = new...
|
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.
Using Access 07, a form is a little different beast and it would appear a
custom dialog cannot be created in the same way.
How does one go about creating a custom dialog?
Note that I am not well experienced in programming but I have a couple of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |