confirm

Is a "Confirm Email" input good practice when user changes email address?

My organization has a form to allow users to update their email address with us. It's suggested that we have two input boxes for email: the second as an email confirmation. I always copy/paste my email address when faced with the confirmation. I'm assuming most of our users are not so savvy. Regardless, is this considered a good practi...

PHP version of confirm() of JavaScript

Is there a PHP version of JavaScript's confirm() function? If not, what are my other options or how do I make something similar to the confirm()? ...

Can you wait for javascript callback?

I'm trying to use the jQuery alerts dialog library from http://abeautifulsite.net/notebook/87 instead of the default alerts (which look pretty awful in my opinion). This seems to be a great library, but there is not an example of how to use the jConfirm library. I need to do something like this: function confirm() { var result ...

MSHTML - Auto Click for javascript confirm dialog

I try to automatically parse/submit web page using MSHTML (in C#.Net 3.1 WPF WebBrowser control). I can fill the forms, click buttons, naviagate pages without problems. But do not know how to automatically click "ok" button on javascript confirmation dialog which appear when I click "Submit" button. C# code: mshtml.IHTMLDocument2 doc =...

Javascript Confirm popup Yes, No button instead of OK and Cancel

Javascript Confirm popup, I want to show Yes, No button istead of OK and Cancel. I have use vbscript code <script language="javascript"> function window.confirm(str) { execScript('n = msgbox("' + str + '","4132")', "vbscript"); return (n == 6); } </script> this only work in IE, In FF and Chrome, it does't work....

Javascript working with ASP.NET code behind

I have to make a delete button for a simple intranet forum. I would like to have a javascript alert box (or equivalent) asking for confirmation when deleting posts. However, I've found it difficult to get the result of the javascript confirmation box to feed into the code-behind. Is this even possible? Or do I have to use another sor...

How can I confirm and then disable a button in asp.net/javascript

I have a standard ASP.NET 2.0 web page with a Delete button on it. What I need and can't figure out how to pull off is when the user presses the delete button a confirm dialog popups asking the user "are you sure?". If the user says yes then I want to disable the delete button and perform a postback that will run the server side code del...

Javascript problem with a global external link confirmation alert

Below is the code from a plugin for Joomla. It works on it's own and it's purpose is to detect external links on the page and force them into new browser windows using _blank. I've tried for about an hour (I don't know javascript well) but I can't seem to figure out how to get an onclick function working. End result, I want to add to t...

How to show the "Are you sure you want to navigate away from this page?" when changes committed?

Here in stackoverflow, if you started to make changes then you attempt to navigate away from the page, a javascript confirm button shows up and asks: "Are you sure you want to navigate away from this page?" blee blah bloo... Has anyone implemented this before, how do I track that changes were committed? I believe I could do this myself,...

How to avoid clobbering files when creating a tar archive

This question notes that it is possible to overwrite files when creating a tar archive, and I'm trying to see how to avoid that situation. Normally, I'd use file roller, but the version installed is playing up a bit (using 1.1 Gb of memory), and I'm not the system administrator. I looked at --confirmation and --interactive, but that on...

Confirm alert box in javascript and ASP.net like Hotmail

Hello friends i am trying to create a confirm box similar to Hotmail's Confirm box when we click on the Empty Folder in the Junk Mail folder. but i am unable to figure it's working and the logic behind it. i am using ASP.Net 2 in VS 2005 Pro. is there any special logic which goes behind the working of the confirm box like the one use...

How to design a CSS for floating confirm dialog centered on the visible portion of a page?

Hi, I already asked a more general question, with a great answer. However, I want a more tricky centered floating popup: If my page is 1000px high, and I'm viewing only the upper portion of it, I do not wish the popup to pop at 500px, but rather at the middle of the visible portion of the screen. Is there a way to access the visible ...

struts2 password confirm validation

i have two fields 1)password 2)confirm password and want to perform validation that both fields are the same............and want client side validation plz help ...

onbeforeunload confirmation screen custumization

Is it possible to create a custom confirmation box for the onbeforeunload event in a browser? I tried but then I get 2 confirmation boxes (one from me which is nothing more than return confirm... and then the standard one from the browser). At the moment my code looks like: var inputChanged = false; $(window).load(function() { win...

HTML Form and Javascript Confirmation

I'm having a problem with submitting a form and Javascript confirmation. Basically, the following Javascript is called when the "submit" button is pressed. function confirmation() { var answer = confirm("Are you sure you wish to edit?") if (answer) { window.location = "#editform2"; } } However, when I hit the canc...

Javascript onclientclick help?

I have OnClientClick="return confirm('Make Payment?');" tied to an asp:Button. It works fine, however, prior to popping up this confirm tho, I need to check if a textbox contains a value... How can I do this? I need a function to return false if the textbox value is null or empty, otherwise i want to present the user with the c...

Calling another jQuery function if confirm is true..

Hi all, I'm trying to call another jQuery function if confirm is true, here's the code: jQuery("#adminForm_1").submit(function () { var empty = false; jQuery(":input", "#adminForm_1").each(function () { empty = (jQuery(this).val() == "") ? true : empty; }); if (empty) { if (confirm('You have not filled ...

C# .NET and Javascript Confirm

I have a C# ASP.NET web page with an xml file upload form. When the user clicks 'upload', a javascript confirm alert will pop up asking the user, "is this file correct?". The confirm alert will only activate if the file name does not contain a value from one of the other form fields. What is the best way to combine the use of a C# AS...

call js confirm from code behind

codebehind Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click Dim ResourceObject As Object Dim js As [String] = (vbCr & vbLf & " if(confirm('Esta Seguro de eliminar de la lista')==true)" & vbCr & vbLf & " document.getElementById('" & txtRespuesta.ClientID & "').va...

Ask for confirmation on page unload

On StackOverflow when you're asking a new question, you have enter the question and if you decide to navigate away from the page you get an "Are you sure" confirmation. I'd like to do the same in my ASP.Net application: The user has to fill in a questionnaire and has the option to store his answers temporarely. If the user decides to...