Javascript confirm() with Yes/No?

Is it possible to get "Yes" and "No" for the two buttons
rather than "OK"
and "Cancel"?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================

Thanks!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"bregent" <[email protected]> wrote in
message
news:g8hd2e$dei$[email protected]..
> >That's a nice link, but 91K of CSS? Wow. Have you
used this method?
>
> Nope. Just searched for it when you asked. I haven't
looked to closely but
> that link is to a site for foundation library, which I
assume is also
> required.
> I'm betting there are some bare bones examples out there
you can copy if
> you
> look around. I'll post back if I find any.
>

Similar Messages

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

    Hi,
    I wrote javascript for confirm popup like below:
    var answer = confirm ("Are you sure you want to delete this item ?");
    It is showing OK Cancel button popup , but I want to display Yes No buttons on popup insted of OK Cancel buttons...
    Appreciate if anyone give proper solution.
    Thank you.
    Still I could not get proper solution.... Please any one help me solve this... need js solution not jquery..

    Hi Praveen
    There is not direct option in JavaScript to get Yes/No buttons in a Confirm dialog.
    But, we can create a customized dialog box with our own HTML tags, controls and scripts and show it as a confirmation dialog using
    window.showModalDialog() function
    Here is the sample HTML to demonstrate how to create a customized confirmation dialog.
    Dialog.HTML (This contains the UI for the confirmation dialog. Message, Yes No buttons etc)
    <!DOCTYPE>
    <html>
    <head>
    <title>Confirmation Message</title>
    <script language="javascript" type="text/javascript">
    window.onload = function()
    var messageDiv = document.getElementById('dlgMessage');
    if ( messageDiv != null && typeof(messageDiv) != "undefined" )
    messageDiv.innerHTML = window.dialogArguments;
    function confirmClick(args)
    window.returnValue = args;
    window.close();
    </script>
    </head>
    <body>
    <div id="dlgMessage">
    </div>
    <input type="button" value="Yes" id="btnYes" onclick="javascript:confirmClick('yes')"/>
    <input type="button" value="No" id="btnNo" onclick="javascript:confirmClick('no');"/>
    </body>
    </html>
    MainPage.HTML (From where the confirmation dialog will be shown. In your case, u can use the script in this html and customize it according to ur needs)
    <!DOCTYPE>
    <html>
    <head>
    <title>Main Page</title>
    <script language="javascript" type="text/javascript">
    function showConfirmDlg(message)
    var returnValue = window.showModalDialog("dialog.html",message,"dialogHeight:150px;dialogWidth:200px");
    if ( returnValue == 'yes' )
    alert('Yes button is clicked in the dialog');
    else
    alert('No button is clicked in the dialog');
    </script>
    </head>
    <body>
    <input id="btnConfirm" type="button" value="Confirm" onclick="javascript:showConfirmDlg('Do you want to continue?');" />
    </body>
    </html>
    Hope this helps.
    See this MSDN Link for more information on how to use and customize the showModalDialog() function
    http://msdn.microsoft.com/en-us/library/ie/ms536759(v=vs.85).aspx

  • Problem with javascript confirm() in a JSP

    I'm trying to use a confirm() box in a jsp. I've looked at tons of examples and I still have the same problem. If I just add this to my page the prompt will pop up as expected: (of course it doesn't really do anything.)<SCRIPT LANGUAGE="JavaScript">
    confirm( "Are you sure you want to delete?" )
    </SCRIPT>As soon as I add an if clause around it it doesn't even pop up anymore, such as:if (confirm("Are you sure you want to delete?")){
    <%
         Do some jsp stuff
    %>
    else {
    <%
         Do some jsp stuff
    %>
    }I can include more of the code if needed. This code is for deleting some files, so I want to add an "are you sure prompt?". If they hit ok it will delete, otherwise cancel the operation.
    I assume that the "if confirm( "Are you sure you want to delete?" ) " should wait for a reponse before continuing. Any help is appreciated.
    Thanks,
    James

    You can use Javascript to confirm a delete, and delete an object in the following manner.
    //link to delete an object..
    <a href="thisPage.jsp?delete=<%= itemID %>"
       onClick="return confirm('Are you sure you wish to delete this item?');">delete</a>Then, at the top of the JSP pageif(request.getParameter("delete") != null)
       //do whatever to delete, then load the page as normal
    }Now, your item will be deleted, and the page will be refreshed to show the changes.

  • Javascript Confirm box dependent on results of query

    Hi
    I'm using Apex version 3.2.1 and I'm looking for a way to do the following, any help much appreciated:
    A javascript confirm box will appear when the user submits a page if the result of a query returns anything, the query would look something like this....
    SELECT * FROM LINKEDPROJECTS
    WHERE ENV_ID = :P18_ENV_ID
    AND COMP_ID = :P18_COMP_ID
    AND DATE_FROM <= to_date(:P18_DATE_TO, 'DD-MON-YY')
    AND DATE_TO >= to_date(:P18_DATE_FROM, 'DD-MON-YY')
    If it doesnt return any data the page will submit as normal, if it does return any data the confirm box will appear, and the message will also be driven by the result of a query.
    So the message would be something like....
    Project(s) +"Select NAME FROM PROJECTS WHERE ID IN (SELECT PROJ_ID FROM LINKEDPROJECTS WHERE ENV_ID = :P18_ENV_ID+
    +AND COMP_ID = :P18_COMP_ID+
    +AND DATE_FROM <= to_date(:P18_DATE_TO, 'DD-MON-YY')+
    +AND DATE_TO >= to_date(:P18_DATE_FROM, 'DD-MON-YY')"+ have this environment booked on the dates you selected.  Do you want to continue with the booking?
    Selecting yes submits the page, selecting no returns them to the page.

    In a nutshell (and some pseudo code):
    The button URL would look something like "javascript:beforeSubmit()" without quotes and where beforeSubmit is the name of your function.
    The function would look something like:
    function beforeSubmit() {
      var runQuery = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=RunTheQuery',1);
      var result = runQuery.get();
      if (result = 0) {
        if (!apex.confirm('Submit page?")
          return;
      doSubmit('SUBMIT');
    {code}
    The application process, called "RunTheQuery" in this example, is a PL/SQL block that runs the query and return the value using the htp.prn function.
    There are probably errors in the above as I just did this off the top of my head, and you will probably need to tweak it somewhat.  But hopefully you get the idea.
    Mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Javascript confirm alert Can we change the text ok

    can we change the ok and cancel text in the javascript confirm alert. pls respond, its very ungent
    Edited by: Bini John on Jun 10, 2009 9:19 AM

    Hi,
    Yes if client want new description for the PS Group, you have to create new only and assign the wage types to them and so on..... you have to do all the configurations regarding the PS Group. Here the main point is be careful with the start date of the PS Group for newly created records and assignments.
    Best Regards.

  • Javascript Confirm Redirect

    I am looking to figure out how to do a javascript confirm
    Redirect popup. Can anyone help me out with that? Is there a
    Dreamweaver behavior for that?

    I'm not sure exactly what you mean, but it's easy enough to
    make a popup (to
    open a second sized browser window) by using DW's Open
    Browser Window
    behavior.
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "joey_a" <[email protected]> wrote in
    message
    news:edbo7j$iea$[email protected]..
    >I am looking to figure out how to do a javascript confirm
    Redirect popup.
    >Can anyone help me out with that? Is there a Dreamweaver
    behavior for that?

  • Call a process based on the click of a javascript confirm popup box

    I have created a function to create a javascript confirm popup box which calls an update process called Reactivate_save(), see below:
    function reactivate_save()
    var r=confirm("Do you wish to save pending changes?")
    if (r==true)
    document.getElementById('Reactivate_Save').call();
    I want to make the update process conditional on clicking the 'ok' button inside the popup box.....Is this possible?
    I thought that I could reference it by using:
    value in expression 1 = expression 2
    reactivate_save() = true or 1
    Neither of these worked and wondering if there is something else that I can use?
    Thanks,
    Chris

    Hi,
    Your function is in Javascript while the process is PL/SQL. What you need to do is somewthing like this
    if (r==true)
    document.getElementById('Reactivate_Save').call(); // not sure what this does so left it as it is
    doSubmit('MY_REQUEST');
    }You can now use the 'MY_REQUEST' request, or whatever else you choose to call it, in the process condition using
    1. Request = e condition type by entering MY_REQUEST in the Expression 1
    or
    2. PL/SQL Expression type with :REQUEST = 'MY_REQUEST' in expression 1
    Note : In Apex 3 and below you need to add a semi colon at the end of PL/SQL Expresssions
    Regards,
    PS : Noticed that this is the same as call a process based on the click of a javascript confirm popup box
    Edited by: Prabodh on Sep 28, 2010 9:05 PM

  • Cancel the Confirmation with CN29

    Hi All,
    I have a activity with confirmed with the statsu of CONF. Now i need to concel the confirmation. Iam trying in CN29. But it is not turning back. Please guide for the solution.
    Thanks in Advance.

    in sap it will not turn back but post a reversal entry
    is settlement done? if yes you need to reverse settlement first then reverse confirmation

  • I have just transferred my application file from an Imac to an identical Imac, both running OS 10.9.5. When I attempt to open Photoshop 6, I am prompted for the serial number. I enter the serial number provided by Adobe, which I have confirmed with my "pr

    I have just transferred my entire application file from an Imac to an identical Imac, both running OS 10.9.5. Everything works fine, excepting that when I attempt to open Photoshop 6, I am prompted for the serial number. I enter the serial number provided by Adobe, which I have confirmed with my "previous purchase" records kept by Adobe. It is demanding a "qualifying product", all of which is contained in the complete files I transferred. Why can't Adobe recognise my valid serial number for Photoshop 6?

    I have just transferred my entire application file from an Imac to an identical Imac,
    Say what?
    Please use the proper installer.
    Are you really talking about Photoshop 6 or about Photoshop CS6?

  • Goods confirmation with quantity 0 and final delivery set

    Dear SRM Experts,
    I would like to share with you the below problem that i asked to be answered from SAP support and would appreciate any solution suggestions for this problem.
    The problem I'm facing is relevant for two of my clients: one using SRM 4.0 with ECC 5.0 and the other using SRM 5.0 with ECC 6.0.
    I was looking for a note solution concerning goods receipt reappearing in the confirmation screen (BBPCF02) although the confirmed quantity was equal to the ordered quantity and by chance I came up against note 1292032 - Goods confirmation with quantity 0 and final delivery set; that was released after a long list of notes that DID ALLOW the posting of Goods confirmation with quantity 0 and final delivery set.
    [Note 1292032|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1292032]
    Applying this note through the note implementation or Support package will ELIMINATE the option for the Goods Recipient (that do not have and will not have a PO change authorization) to indicate in any way that he is not expecting to receive those goods.
    Please follow the below example to exemplify this problem:
    A PO was created as follow:
    Item Product Quantity Price
    1 A1 10 10
    2 A2 10 12
    3 A3 10 14
    4 A4 10 16
    5 A5 10 18
    6 A6 10 20
    A first confirmation was created for the following products and quantities:
    Item Product Quantity Final Delivery
    1 A1 5 X
    4 A4 10
    5 A5 2
    A second and FINAL confirmation was created for the following products and quantities:
    Item Product Quantity Final Delivery
    2 A2 8 X
    3 A3 10
    So at the conclusion of the above example:
    For items 1; 2; 3; 4 the delivery completed indicator should be set as all expected quantities were delivered, as per items 5 and 6 they will remain open and as of note 1292032 there will be no way that the Goods Recipient can indicate IN THE SYSTEM that he is not expecting any more deliveries (keep in mind that he do not have any PO change authorization), and the PO will remain as opened and will keep appearing in the Confirm Goods / Services transaction.
    Sending an e-mail to the purchaser, asking to set the Delivery Completed indicator in the PO is not a feasible option as all process should be backed up by the system and sending e-mails cannot be monitored by the system.
    Kind Regards,
    Raz Golan
    Edited by: Raz Golan on Sep 24, 2009 1:16 PM

    .

  • Populating a javascript array with datatable data

    I want to populate a javascript array with datatable data.
    How do I do this?
    I want the javascript array to be populated as the datatable is displayed.
    Doing this way doesn't work.
    <h:dataTable value="#{pmManager.profiles}" var="pmProfile" binding="#{pmManagerUiBean.uiTable}" ">
    <script>
    allProfilenames[index]='#{pmProfile.profileName}';
              alert("index ="+index);
              alert("...1"+allProfilenames[0]);
              alert("...2"+allProfileRes[0]);
              index++;
    </script>
    <h:dataTable>

    In Javascript do something like this:
    document.getElementById('form1:dec_param');
    where form1:dec_param is the id of the component on the page source (html)

  • Pop up window with yes & no push buttons

    hi
    i want to display a pop up window with yes & no push buttons
    can anyone help for this

    Hi,
    call function POPUP_TO_CONFIRM
    exporting
    TITLEBAR = pop_up' (for pop-up header)
    TEXT_QUESTION = 'do you want to save data'
    TEXT_BUTTON_1 = 'Yes'
    ICON_BUTTON_1 = ' '
    TEXT_BUTTON_2 = 'No'
    ICON_BUTTON_2 = ' '
    DEFAULT_BUTTON = '1'
    DISPLAY_CANCEL_BUTTON = ' '
    USERDEFINED_F1_HELP = ' '
    START_COLUMN = 25
    START_ROW = 6
    POPUP_TYPE = ' '
    IV_QUICKINFO_BUTTON_1 = ' '
    IV_QUICKINFO_BUTTON_2 = ' '
    importing
    ANSWER = ANS
    OR.
    Use POPUP_TO_DECIDE.
    call function 'POPUP_TO_DECIDE'
           exporting
                defaultoption  = '1'
                textline1      = text1
                textline2      = ' '
                textline3      = text-202
                text_option1   = 'YES'
                text_option2   = 'NO'
                titel          = text-114
                start_column   = 15
                start_row      = 6
                cancel_display = ' '
           importing
                answer         = zanswer.
    hope this helps.
    plz take a look on this function modules also:
    POPUP_TO_CONFIRM_LOSS_OF_DATA Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.
    POPUP_TO_CONFIRM_STEP Create a dialog box in which you make a question whether the user wishes to perform the step.
    POPUP_TO_CONFIRM_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point during an action.
    POPUP_TO_CONFIRM_WITH_VALUE Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.
    POPUP_TO_DECIDE Provide user with several choices as radio buttons
    POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.
    POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:20 PM
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:25 PM
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:26 PM

  • Using Javascript Functions with Flash 8

    I wanted to know how to integrate Javascript functions with
    Flash 8 created swf files. I assume this would be done using
    ActionScript, I know some ActionScript but am not as familiar with
    it as to be able to integrate other programming languages with it.
    I'd like to be able to call other programming language functions
    with my swf files.
    The particular case I'm working on now is to be able to open
    Pop-Up windows for display of web items from within links written
    in ActionScript in a swf file. In other words, have the user click
    a link in a Flash movie and open a window using a Javascript
    window.open function that would be called. I would like the window
    to contain more flash movies that contained further links to
    functions. If any one could offer up some advice or point me to a
    few tutorials and how tos on how to get the Flash part of this done
    I'd appreciate it.
    In a broader scope, a seemless workflow linking Flash output
    files to outside scripting and programming functions would be nice
    to know if anyone has links or input on where I can read up on
    this.
    Thanks

    myButton.onRelease = function () {
    getURL("javascript:myFunc('myVars')");
    }

  • Javascript  Confirm Based on server time!!

    Hello Everybody,
    I want to raise a javascript confirm dialog box based on the server time. On button click, I want to raise the following code if the time is between 11 am to 24pm.
    E.g.
    IF l_time BETWEEN '11:00' AND '24:00' THEN
    htp.p('<script>');
    htp.p('var r=confir("Do you want to proceed?");
    htp.p('........so on');
    htp.p('</script>');
    ELSE
    -- just submit the page
    END IF;
    Any help will be appreciated!!
    Thanks,
    Parveen

    Hi,
    a.Always mention the Apex version, in every post.
    b. Always enclose your code in a pair of tags to make is more readable.
    Javascript can read the local machine time. If you want to access the server time you will need to use PL/SQL or SQL for that and pass that to the javascript function.
    Any specific reason why you are generating the JS through PL/SQL? Its so much easier to decalre the function in the Page HTML Header rather than doing htp.p.
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use JavaScript Calendar with ADF Faces ?

    Hi All,
    Our application is running under limited bandwidth so that we want to use clientside/javascript calendar instead of the ADF Faces calendar (server side).
    I already have the javascript that will pop-up calendar selection dialog when invoked.
    Using JSP, this is working perfectly, BUT I don't know how to integrate this Javascript calendar with ADF Faces form.
    How can I do that ?
    Attached below is the JSP that works with script :
    <f:view>
    <html>
    <head>
    <script language="JavaScript" src="ts_picker.js">
    </script>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>Calendar</title>
    </head>
    <body>
    <form name="tstest">
    <input type="Text" name="timestamp" value="">
    <img src="cal.gif" width="16" height="16" border="0" alt="Click here to get the date">
    </form>
    <h:form>
    </h:form>
    </body>
    </html>
    </f:view>

    Hi,
    ADF Faces does not provide a method that allows you to call JavaScript on the client. This may change in upcoming versions
    Frank

Maybe you are looking for

  • Mysql connector & ssl

    Hi, I have enabled ssl on my mysql server and am using useSSL=true&requireSSL=true in my jdbc connector url. I am getting the following error: The root cause was that: com.mysql.jdbc.CommunicationsException: Communications link failure due to underly

  • Difference between two date in bex query

    Hi all, I need to do a difference between two date using formula variable processing type customer exit beaucause I must use factory calendar in the formula. How can I do it? Can you give me an example of the routine? Thanks a lot Gianmarco

  • Parameter "BASE" in .fmx properties? :(

    Hello friends, I have a doubt: I have in my desktop a direct access to myform.fmx fmx extension is asociated with ifrun60.exe I want to click on the direct access and make the aplication connects to the database and runs... (or at least, that appears

  • How to see what is on my iPhone screen on the computer?

    Like for example watching a itunes movie and wants to view in\t bigger on the computer of what is on the iphone?

  • SLD server and UME configuration

    Dear Portal Gurus, I have configured the UME as ABAP datasource (R/3) with  client (001). all the things sld is running and able to create jco connections . iam not able to create users from user adminstration when the client is 001 when i modify the