473,320 Members | 1,958 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,320 software developers and data experts.

Click in Yes/No no outside the dialog box

Hello
I have a "page" when people can select a record and click in Delete.
A little page is open to ask the user if he is sure (Yes or No).

How can I do this response Mandatory? I cannot that pople click outside of
these dialogbox.

Thanks for your help.
C.
Jul 31 '06 #1
4 1086
Use a java script prompt rather than opening a pop up web page.

"Carlos A." wrote:
Hello
I have a "page" when people can select a record and click in Delete.
A little page is open to ask the user if he is sure (Yes or No).

How can I do this response Mandatory? I cannot that pople click outside of
these dialogbox.

Thanks for your help.
C.
Jul 31 '06 #2
The standard solution is to use javascript confirm() method. If you insist
on your own page, you should open it with a javascript call showModalDialog.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Carlos A." <ca**********@msn.comwrote in message
news:eD**************@TK2MSFTNGP05.phx.gbl...
Hello
I have a "page" when people can select a record and click in Delete.
A little page is open to ask the user if he is sure (Yes or No).

How can I do this response Mandatory? I cannot that pople click outside
of these dialogbox.

Thanks for your help.
C.

Jul 31 '06 #3
Thnks both for your answer
"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:Or**************@TK2MSFTNGP05.phx.gbl...
The standard solution is to use javascript confirm() method. If you insist
on your own page, you should open it with a javascript call
showModalDialog.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Carlos A." <ca**********@msn.comwrote in message
news:eD**************@TK2MSFTNGP05.phx.gbl...
>Hello
I have a "page" when people can select a record and click in Delete.
A little page is open to ask the user if he is sure (Yes or No).

How can I do this response Mandatory? I cannot that pople click outside
of these dialogbox.

Thanks for your help.
C.


Aug 1 '06 #4
Hi,

Eliyahu Goldin wrote:
The standard solution is to use javascript confirm() method. If you insist
on your own page, you should open it with a javascript call showModalDialog.
Note however that showModalDialog is for IE only. In Firefox, you open a
modal window by using the "modal" feature. See
http://developer.mozilla.org/en/docs...ow.open#Syntax

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 2 '06 #5

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

Similar topics

5
by: Al Christoph | last post by:
I have a program that mixes wizard like behavior with random access to the various dialogs in the wizard. I do this by having each step map to a toolstripmenuitem. Users can randomly choose the...
4
by: John Scott | last post by:
I have a situation where I want to bring up two "File Download" dialog windows to download two separate .xls files. Is there any way to do this by only clicking on one "Export" button? --...
1
by: robertm | last post by:
I have an aspx page which I open using the following code fragment below. The modal web dialog has 2 buttons and whenever I click any of them, a new window containing my web dialog form is opened...
2
by: Danny Wang | last post by:
HI, I have a dialog (window) with a drop-down list and an OK button. When user clicks the drop-down list, the app need to do some calculation and validation, so I put an Text_on_change event on...
2
by: Samy | last post by:
Hi There, I have a user control with buttons on it which I use on a aspx page (parent page). On a button click, a modal dialog(aspx page) opens up and the user enters some info in the modal dialog...
11
by: Sarah | last post by:
I have code that I want to run so that if the result is true, it changes the current button's ".DialogResult" property to "DialogResult.OK". Problem is, when I run this code on the ".Click" event...
2
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for...
17
by: Eric | last post by:
I'm new to JavaScript and I wrote this code to play with. Oddly, if I enter text in a box and then press the button, I only get the onChange event for the text box and not the button's onclick...
4
by: chris | last post by:
can anybody have some ideas?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.