confirm

Is it possible for onunload confirm to open a new url in the same window?

Hi - this is my first post and I'm a JS novice, so please forgive my ignorance... Heres my question, its in two parts: 1.) At onunload I want an alert that asks the user if they would like to go to a related URL. The code I'm using works, but it open the URL in a new window and this can be blocked by a pop-up blocker even though the us...

JavaScript: If clause partially executed

Hi everyone My problem is that when the condition is true it will close the window but not execute the php part ! here goes my code.. <script type="text/javascript"> function onClose() { var r=confirm("Is the meeting Over!"); if (r==true) { <?php $result=mysql_query($sql);?> window.close(); } else { <?php $res...

How to show a confirm box in Adobe Air when user clicks an exit button

I want to know about the code for creating a confirm box in Adobe Air. When a user clicks an exit button, a confirm message box should pop up. Thanks in Advance ...

JavaScript confirm() crashing with FF 3.6.4

Hello, Yesterday I added a line of JavaScript that uses confirm(), and I was using FireFox 3.6.3 and it was working fine, but today FireFox upgrades to 3.6.4 in the background and the confirm() freezes my browser, although it still works in IE. I suspect it is a FireFox 3.6.4 issue. I was wondering if that was indeed a FireFox 3.6.4 is...

trigger confirm box

i have used <asp:CommandField ShowEditButton="true" ButtonType="Link" EditText="Edit" ShowHeader="true" HeaderText="Edit" HeaderStyle-Font-Bold="true" /> <asp:CommandField> in my gridview. Response.Write("<script>confirm('Are you sure');</script>"); if("OK") { } else { } how to take the v...

Confirming action before processing!

Am doing a contact management site in codeigniter, i have a function which delete the contact based on id. For example the page will have all contacts listed. And each contact will have a link saying delete near it. The link will be to the function passing the id, like: www.site.com/index.php/action/delete/23 So i want a confirmation...

Javascript - How many arguments are there for confirm?

How many arguments are there for confirm box? What does var del=confirm("Are you sure?","Delete",""); means? ...

How do I add confirm function to links in jQuery so that the dialog always appears?

I have a HTML table that displays rows of records and has a column on the end with a delete link. Each delete link has a class of confirm-delete. I need to have a confirm dialog popup on click and as it is used in multiple pages, have created a confirm function in an external JS file. I have added the function call to the link's click ...

JavaScript: Confirm dialog box that shows value from a text box

Hi. Is there a way to have a confirm dialog box display the value a user typed in a text box on a form? (For example, if the user types 100.00, I'd like the dialog box display a message something like, "Confirm Amount. Click OK if $100.00 is the correct amount.") ...

Drupal - make the cancel link on the confirm page a button

When I press the delete button on some content, I'm taken to a confirmation page. The delete option is a button, while the cancel option is a link. That looks pretty weird. I found that there's a form_confirm() function in drupal, but I can't understand how to use it. Does anyone know how to make the cancel link into a button? ...

Yes or No confirm box using jQuery

I want yes/No alerts using jQuery,instead of ok/Cancel button. jQuery.alerts.okButton = ' Yes '; jQuery.alerts.cancelButton = ' No '; jConfirm('Are you sure??', '', function(r) { if (r == true) { //Ok button pressed... } } Any other al...

Using Facebox as a Confirm()?

i would like to make a modal-confirm that acts like an confirm() but looks nicer :) im using Facebox for other things right now and would like my confirms to have the same design http://defunkt.github.com/facebox/ Is it possible to do this in some way? ...

read current culture of asp.net mvc project and change language in javascript confirm

I have a javascript confirm. My text is in english, but if I will change language/culture of my asp.net mvc project confirm is of cource still english. I can controll it manually and just write two javascript methods (for both Languages) but it is no so clean I think. And if I will have more than 3 languages its will be more dirty. Co...

colorbox close confirmation

$(document).ready(function(){ $('#rest').colorbox(); $("#cboxClose").click(function(){ $.fn.colorbox.close(); }); var cboxClose = $.fn.colorbox.close; $.fn.colorbox.close = function(){ if(confirm("Are you sure?")) { cboxClose(); } } }); this code close my jquery colorbox when i confirm the dialog, but if i click on cancel (!confirm) it...

how to add confirm message box into jquery

hi experts, i'm having list of user with check box, so the function is at least one check box must select else validation done using jquery to delete selected user, once validation done there should confirm message box appear to ask confirmation wheter yes or no to delete. so below is my code without the confirm message box function d...

jQuery ui confirm dialog on multiple forms

I have a few forms on the same page and I want to add a confirm dialog to all of them using the same code. They all have a class of confirm-form and the title of the confirm dialog should be generated dynamically (which isn't working atm). In the html I have the dialog that gets hidden when the page loads, it then gets shown once the di...

Overriding Javascript Confirm() while preserving the callback

Hello all! To the point, I want to override the standard js confirm() function within a jQuery plugin. I have figured out how to do it with the simple function layout below. function confirm(opts) { //code } Now, what I want to do is call another function within the confirm function above, like so... function confirm(opts) { op...

jQuery Confirm Dialog in ASP.NET Button OnClientClick

I have a TemplateField in a GridView in an UpdatePanel with a button called btnDelete. Rather than the standard OnClientClick="return confirm('Are you sure?')" I'd like to use jQuery Dialog. So far, I'm able to set the jQuery using btnDelete.Attributes["onclick"] and setting the jQuery Dialog code in the code-behind. However, it posts b...