JQuery UI modal confirm the deletion

Hello
I'm looking for suggestions on how to fix my script.
What I want to do is to replace a delete confirmation window regular javascript with jquery modal. Delete my javascript regular (as it is build-in thing) looks like:
in the header of the page I have:
script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='"DELETE_CONFIRM_MSG"';
//-->
</script>
and I have a button of the model with the Action of the database: SQL Delete action and Option URL redirects
javascript:confirmDelete(htmldb_delete_message,'DELETE');
What I'm trying to do with jquery ui is:
1. I have this script in my page header
<script>
$(function() {
     $( "#dialog:ui-dialog" ).dialog( "destroy" );     
     $( "#dialog-confirm" ).dialog({
               resizable: false,
                        autoOpen: false,
               height:140,
               modal: true,
               buttons: {
                    "Delete all items": function() {
                         $( this ).dialog( "close" );
                    },
                    Cancel: function() {
                         $( this ).dialog( "close" );
                    }
               }
          });
     });
     </script>


<div id="dialog-confirm" title="Empty the recycle bin?">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;">
</span>These items will be permanently deleted 
and cannot be recovered. Are you sure?</p>
</div>
and I have a button of the model (same as before) per share of database: SQL Delete action and Option URL redirects to
javascript:$('#dialog-confirm').dialog('open')
My questions:
1. when I click on my "Delete" button, I did not receive my confirmation modal pop - up in Internet Explorer at all but I receive it in Firefox for 0.5 seconds and then in two browsers, I get a blank page with '[object Object]' on it.
2. If I change my HTML button button, I'm getting my modal pop screen but if I am confirming my option remove... it does not remove anything. To remove, I use the "automatic line (DML) treatment" process and I want to use the button of the model not the HTML.

I'd appreciate any help and suggestions.
Thank you

Hello

Create HTML region without a model of before footer.
Place at the source of the region


These items will be permanently deleted and cannot be recovered. Are you sure?

And the target URL button

javascript:confDialog()

Kind regards
Jari

Published by: jarola on November 10, 2010 09:02

Published by: jarola on November 10, 2010 09:36

If you do not like to change all of your delete buttons:
Simply create region HTML page zero before the footer without a model.
Place at the source

This will overwrite the original alert

Kind regards
Jari

Tags: Database

Similar Questions

  • When I tried to download an app for iPhone only on my iPad, the white icon indicating downloading appeared, but obviously it did not work, so I tried to delete, but even after I confirmed the deletion, the icon is still there! What should I do?

    Today, I tried to download a single app for iPhone, but it wouldn't work. (Well, that's why's called it "iPhone only apps") So I tried to delete it as anyone else, and it seemed to work fine, until I clicked the button to confirm, and the white installation icon would not disappear! I continued to by pressing DELETE and confirming, but the stupid icon was still there! Someone please help me or at least just tell me it's bugged and he is going to be there forever? Help, please!

    Try a simple Reset: press and hold the Power and Home buttons until you see the Apple logo.

    BTW, I have still a few iPhone only apps that work very well on my iPad with iOS 9.3 2 Air.

  • How to cancel the "don't show" for confirmation of deletion in the trash

    Please can someone tell me how to cancel the option to delete the contents of the trash folder without confirming the deletion. I clicked on "do not show this" when I clicked on emptying the trash and he asked if I really wanted to delete all but now I think that I really need this possibility to check again before I have delete the files. I have looked everywhere but can't find out how to cancel that and cannot find anything here to help either.

    If you open Tools/Options/Advanced/general/Config. Editor and copy mailnews.emptyTrash.dontAskAgain in the search box, you will probably see that its value is 'true '. Double-click the preference to false.

  • How to return to the prompt to confirm my deletion of snapshot in VMware Workstation 7.0.1 (Windows)?

    Hello.

    Somehow, I have accidentally said VMware Workstation 7.0.1 does not prompt/confirm when deleting my image snapshots. How can I get that back then he can confirm my requests? I can't find the option in the program or the answer online.

    Thank you in advance.

    Maybe it's because my new glasses

    However, I see the entry (the 9th bottom). Set to "TRUE" or remove them, it should work.

    André

  • Confirmation message deletion JS for an icon of the Recycle Bin in interactive report?

    Hi all
    I made an icon of trash custom in IR for the removal of each line. Now I want to display a message requesting confirmation of deletion, I know how to do it for a button. Given that mine is not a button, how can I do this?

    Here is a screenshot of the page APEX.

    [http://www.imagetoo.com/images/apexblb.png]

    Thanks and greetings
    Umer

    Hello

    In my app very old, I used this solution (an old man), I use a little more complicated now.
    Example:

    (1) in the URL of the link, I added:

    JavaScript: if (confirm ("are you sure you want to delete this file?'")) {redirect ('f? p = & APP_ID.: 12: & SESSION.: D ELETE: &. DEBUG: P12_ID_DELETE: #ID #');}

    In this case, page 12 is the same page where the report of the IR's show - it redirects to itself with DELETE query and P12_ID_DELETE element temp is filled with the ID of the record online.

    (2) I have created a page of PL/SQL On Load process - before header

    BEGIN
    DELETE from res_attach WHERE ID =: P12_ID_DELETE;
    END;

    Conditions: Ask = Expression1
    Value: DELETE

    This removal of the process the folder with the ID defined according to redirect only if application is set to remove.

    This is the simplest solution for me.
    There are solutions for her. As an onDemand without redirection process or submit the form. But it's a little complicated.

    Concerning
    J :D

  • r204tx: how to activate the deletion warning on hp computer laptop r204tx

    Hi all!

    Recently I bought hp laptop r204tx with Win. 8.1 - 64 bit, however, whenever I want to delete any file, folder, etc. I press the button Delete and deletes directly without any warning or alert!

    Please, help me to solve this problem and enable the alert message for the delete option...

    Thanks in advance!

    How to activate the Confirmation alert delete:

    http://www.askvg.com/how-to-enable-delete-confirmation-dialog-box-in-Windows-8/

  • Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted

    Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted.

    I have also changed the CLASSID HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\ {BDEADE7F-C265-11D0-BCED-00A0C90AB50F} / instance DontRefresh value to 0

    Hello

    (1) have you made changes before the start of this issue?

    (2) what happens when you try to start in safe mode?

    To start your computer in safe mode, you can see the link below:

    http://windowshelp.Microsoft.com/Windows/en-us/help/323ef48f-7b93-4079-a48a-5c58eec904a11033.mspx

    I suggest you to place the computer in a clean boot state and check if the problem is resolved:

    1. sign the computer by using an account with administrator rights.

    2. click on Start, type msconfig.exe in the Start Search box and press ENTER to start The System Configuration utility. If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    3. on the general tab, click Selective startup, and then click on to clear the load startup items check box. (The check box use the file Boot is not available.)

    4. on the Services tab, click to select the hide all Microsoft services check box, and then all disable.

    5. click OKand then click restart.

    6. check if you still have the problem.

    See the link below for more details:

    How to troubleshoot a problem by performing a clean boot in Windows Vista

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual after you have finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start , type msconfig.exe in the Start Search box and press ENTER.

    1. If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    2. on the general tab, click the Normal startup option, and then click OK.

    3. When you are prompted to restart the computer, click restart.

    If this does not work, try to run a SFC scan. To do a SFC scan follow the steps below:

    Use the System File Checker tool, which is also called scan SFC.

    File system (CFS) auditor verifies that all Vista system files are where they should be as they are by default and not corrupted, changed or damaged.

    1. click on Start, click principally made programs, Accessories, right-click on command promptand select Run as Administrator.

    2. click on continue or provide administrator credentials if prompted.

    3. in the command prompt window , type the following, and then press ENTER:

    sfc/scannow

    4. you should see messages on the screen the following:

    From the analysis of the system. This process will take time.

    Start of the phase of verification of the scanning system.

    % Of verification complete.

    5. once scanning is complete, check to see if the problem you are experiencing is resolved or not.

    Hope the helps of information.

  • Recycle Bin icon missing upon confirmation to delete an item?

    Hello this problem was bugs me for a long time. After attempting to send an item to the trash, as usual a pop-up box asks me to confirm. However, a trash icon is missing. Is anyway to fix this?

    You can remove all the right values. Especially 31 and 32 are R.Bin substitutions. After the deletion, the closing session and return connection and the problem should be resolved.

  • I want to buy a program. but I can not confirm press confirmed the software program that gives back to you. I doubt it happens

    I want to buy a program. but I can not confirm press confirmed the software program that gives back to you. I doubt it happens

    Hello

    Please try to place an order using another browser or you can delete the cookies/cache and try again.

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Kind regards

    Sheena

  • Is there a way to prevent the deletion of a file during CHECKIN services?

    My scenario: I am creating a service that takes the current latest revision and creates a new one, using the same metadata and content. I'm almost done. The lack total that when I called the service (CHECKIN_SEL) the file whose path I provided in the parameter primaryFile:path is deleted. Of course, I can create a copy in the ~ temp directory, but I would rather prevent deletion. I have also observed that the log contains a line:

    (internal) / 6...    Files to remove: /app/domains/content/ucm/cs/vault/document/2001.zip

    I tried to analyze the service and I found the intradoc.server.DocServiceHandler.addFiles () method. This method calls another method, deleteFilesInDeleteList, in which the files appear to be deleted. It is, however, also an event filter, preDeleteFilesInDeleteList, triggered. So I created a filter code to undo the deletion, if certain conditions are met. The code looks as follows:

    public int doFilter (workspace workspace, DataBinder dataBinder,
    ExecutionContext executionContext) throw DataException,
    ServiceException {}
    BinderSnifferFilter.traceVerbose ("PreDeleteFilesFilter");
    Vector v = SharedObjects.getOptList ("dontdelete");
    If (v == null) {}
    return 0;
    }
    String prevID = dataBinder.getLocal ("prevID");
    If (v.contains (prevID)) {}
    BinderSnifferFilter.traceVerbose (prevID + "is confined (-1)" ");
    ((Map) executionContext.getCachedObject ("lockedIDsList")) .put (prevID, "1");
    Returns - 1;
    }
    BinderSnifferFilter.traceVerbose (prevID + "is not confined (0)" ");
    return 0;
    }

    Tracing orders help to confirm that the filter returns-1, I also found this thread:Re: what event of java filter is to remove which mentions the updated object cache of lockedIDsList .

    However, none of this seems to prevent deletion.

    I also tried to find a class that adds the "" files to remove: ' message in the log, without success. "

    Finally, I tried to lock the file by changing the owner/group/permissions in the file system. Curiously, the service has failed (the system could not read during CHECKIN), but in the end, the file has been deleted in any case.

    have you tried to change binder.m_tempFiles? You should be able to change the vector before cleaning module is called.

    Note: I have not tried...

  • How to add the delete function to a report that is already created?

    Hey, guys:

    I'm not familiar with the form relative to the APEX. I have a lot of forms with the reports that has been created before, but they only create buttons. Now I need to add, edit and delete buttons. I wish I didn't have to recreate forms with reports. But when I tried to add the Remove feature by comparing a form with button Delete created by APEX, but it does not work. remove the button does not respond.

    parameter is as follows:

    style button: button model based
    model of button: button
    button type: normal

    Action: redirecting to a URL
    Run validation: No.
    Target URL: javascript:apex.confirm (htmldb_delete_message, 'DELETE');
    action of databases: SQL delete action

    condition type: point value / column in expression1 is not null
    expression1: P2172_ALIAS_ID

    I also activate the deletion in process: "SOR_ALIAS line process. '


    If I set the action of the button delete that submit the page, I can delete the line, but no standard popup alerts, could someone help me on this?

    Thank you.

    Sam

    Hello

    When you try to reproduce your problem, since all you posted was going well for me, I came across an error that htmldb_delete_message was not defined (you could check your browser console, usually by pressing F12 and select the console tab to see what happends when you press the button).
    Perhaps this is also the case in your configuration, simply replace the URL target with the text below to see if that's the problem.

    JavaScript:apex.confirm ("are you sure you want to delete this record?","REMOVE" ');

    Concerning
    Bottom

  • game-virtualswitch confirm the problem

    Hello

    to initialize a new host, we would like to consolidate multiple NICs to a virtual switch. In our script, we do

    $vs = get-VirtualSwitch - vmhost $vhost - name "vSwitch1.
    game-virtualswitch - virtualswitch $vs - nic "vmnic2', 'vmnic3 '.

    which works as expected. However, we still get a question (sorry about the German in the last line):

    Perform the operation?
    RIP "Setting up virtual switch." virtual switch "vSwitch1.
    [J] Ja [A] Ja, alle [N] [K] of Nein Nein, keine may [H] [?] Hilfe (Standard ist "J"):

    Insofar as we understand the documentation and found examples, this shouldn't happen. You have an idea on how to delete this question?

    Thanks in advance,

    Morodin

    Greetings, @Morodin71 -.

    The cmdlet Set-VirtualSwitch (like many cmdlets) has - confirm the parameter that can be used to add/remove this confirmation question.  Thus, the line would then become:

    Set-VirtualSwitch -VirtualSwitch $vs -Nic "vmnic2","vmnic3" -Confirm:$false
    

    Enjoy

  • How do to navigate to another page when press the 'OK' button to confirm the dialogue?

    Hello
    In a detail of the page, I have a "Delete" button, and when you press this button, it will appear a confirmation dialog box, if the user click on 'Cancel', the dialog box is missing stay and still on the current page, if the user presses the "OK" button, it calls a method in the class ViewImple (do remove and other business process logic) and show a different page. The extract of the JSF page as follows:

    < text af:commandButton = 'Delete' action = 'delete' id = "cb3" >
    < af:showPopupBehavior popupId = "p1" triggerType = 'action' / >
    < / af:commandButton >
    < af:popup childCreation = autoCancel "delayed" = "disabled" id = "p1" contentDelivery = "immediate" >
    < af:dialog id = "d2" type = "okCancel" title = "Confirm deletion?" resize = 'off '.
    dialogListener = "#{scheduleBean.deleteScheduleDialog} ' contentWidth ="200""
    contentHeight = "50" >
    < af:outputText value = "Are you sure you want to delete this report?" id = "ot1" / >
    < af:clientListener type = "dialogue" method = "dialogAction" / >
    < / af:dialog >
    < / af:popup >
    < af:resource type = "javascript" >
    function dialogAction (evt) {}
    result of the var = evt.getOutcome ();
    if(Outcome == AdfDialogEvent.Outcome.Cancel) {}
    evt. Cancel();
    }
    }
    < / af:resource >

    Now the question is when I click on "OK" button confirm dialogue, dialogue is missing, but he can't get into the business logic in ViewImpl class method (the "delete" action value you access method adfc-config.xml file, and then navigate to another page), also click on the button 'Cancel' to stay on the current page.

    All tips will be of great help!

    You can use it as

    Navigate ("deletePage"); the adfc-config. XML

    public static navigate (String taskFlowName) Sub {}

    > FaceContext.getCurrentInstance () .getApplication () .getNavigationHandler () .handleNavigation (FaceContext.getCurrentInstance (), null, taskFlowName);

    }

    or for isnde action to propagate a method you have to use
    > MethodExpression exp =
    > (MethodExpression) ADFUtils.getMethodExpression ("deletePage");
    > getRegAgentNextBtn () .setActionExpression (exp);
    I hope that you ADFUtils with you

  • What is happening in the original file of the photo when I import it in Photos and I have the "Delete after import" box checked?

    What is happening in the original file of the photo when I import it in Photos and I have the "Delete after import" box checked?

    When organizing photos for Photos for Mac app, I find that the Photos makes "copies" of files within the library of Photos and must reference a file if your settings are such that you do not copy the original files in the Photos app.

    Trying to manage the disk space for the Macbook Pro.

    The delete after import is available only when you import a device - a camera, card, an iPhone, but not when you import files from a folder on the system drive.

    You can delete the local image files of your system drive yourself, once you have imported the Photos and they were copied in the photo library.

    I would never use the option "delete after Import. The files will be deleted until you can check if the files have been imported correctly. If you find out later, that some of the imported files are corupted and illegible, it will be repeated o toolate import, because the files have been deleted from the device. Or worse, if pictures should plant a reason any during the import, all the pictures will be lost, if you have enabled "delete after import.

  • DDoes iCloud keeps the deleted content to your iPhone (thus allowing you to free up space on your phone, but keep the content)?

    DDoes iCloud keeps the deleted content to your iPhone (thus allowing you to free up space on your phone, but keep the content)?

    N ° once you delete data from iCloud, it is deleted from your phone.

Maybe you are looking for

  • Satellite U500-ez working slowly when I have powerd with battery

    Evry time that I disconnect this computer from the power socket and tring to work with the battery-it strting to get hot and runs very slowly (on the use of the web!)Any suggestions? Thank youDan Post edited by: wiesd

  • Robocopy works in Windows Server 2012?

    I'm trying to move files from one server to another. The old server running Windows Server 2003 and another is running Windows Server 2012. I would like to copy all the data and permission from the old to the new. Is this possible?

  • The printer connection

    I have a hp deskjet 1000 series printer that I had on my old dell computer, I want to connect to it what are the measures to be taken, please help thanks joanne

  • Need me an adapter for one SSD 2.5 "?

    Hello From the manual T500, looks like an adapter is necessary when installing a SSD drive. It is also necessary if I get SSD Intel X - 25 M which is 2.5 "? --

  • Decommissioning of 8.1 for Windows Windows 7

    Hello I just configured 4 HP 250 notebooks G2. They came with windows 7 Pro is installed and I used the recovery disks provided with the machines to be upgraded to 8.1. The Manager I get their loan for now tells me that the software they want to run