How to add a title to a JavaScript Confirm dialog box.

function confirmDelete() {
var msg = "Do you want to continue removing the items ?";
return confirm(msg);
Presently it says http://locahost:8080/says etc on the title bar for the dialog box. Instead I want to set the title as "Confirm Delete". How can I do this?

You're talking about the document title as you set it in the HTML head? Just alter the title of the document accordingly in the same Javascript function.
If you find Javascript hard, there's a nice tutorial at w3schools.com. And for Javascript related questions better use a forum devoted to Javascript. There are ones at webdeveloper.com and dynamicdrive.com.

Similar Messages

  • How to add array of file types to file dialog box

    Hi
    I just want to know how to add array of file types in file dialog box vi. I know that multiple file type can be added to filedialog vi in the pattern Input string separated by semicolon (eg *.vi;*.doc;*.jpeg;*.xls). But i want file dialog which is shown in the below picture.
    I think that file dialog vi call user32.dll but i don't have that header file to call that dll.
    Waiting for your esteemed response.
    Thanks & Regards
    Samuel J
    System Engineer
    Captronic Systems Pvt Ltd
    Bangalore, India.

    I'm not sure how (or even if) it can be achieved using the LabVIEW built-in open dialog, but a .NET call to openfiledialog (http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx) can do what you're looking for. The .NET functions are better documentented that simple user.dll calls, so it might be easier to implement.
    Shaun

  • How to add a Title (slide? screen?) BEFORE the video track

    Hello,
    I'm very new to Adobe Premiere Pro and I'm trying to figure out how to add a title to my project but I don't want the title on the start of the video in the sequence. I'd like to add it to a black screen, maybe with some transition effects, that will play prior to the video starting. Do I need to create a black image in CS and add it as a still and just add the title to the still which I can position before the video/audio track A starts?
    I'm hoping that there's something I can do right within Premiere that will give me a place to put the title before my video starts. I didn't see an option to add a blank slide or something to that effect that I can add title to.
    thanks for your assistance!
    The more I learn the more excited I get, this software is great.

    Thanks for the link.. like I said in my post, I'm brand new to the software and I've been watching and following guides for hours. Time is not on my side, I have a project that must be done by the end of this week and I have very limited time after work.
    So when I have the head at the begining of my main track and click INSERT in the source monitor window it inserts a duplicate of the entire video so I have TWO videos in my sequence. This is clearly not what I'm wanting so I'm assuming that there's something I'm missing. I've searched google but don't see anything.
    I'm just looking to add a black, blank screen that I can add a title to before my video begins. I realize this may be rudamentary to season vets but as I said, I'm very new and trying to learn this all quickly and I would really appreciate if someone could point me directly to some information about it. I'm not afraid to read and learn, hell I love it, but I'm pressed for time so someone just telling me, "go learn the software" with a link to a huge FAQ, doesn't really help me.
    I've already learned a ton from some great guides but I have yet to have anyone indicate how to add extra footage (be it a still or blank video) directly from Premiere Pro.
    Thank you all for your time!
    EDIT: I think I figured it out... I just bumped the start of the main track up about 10 seconds and I added new item "Black Screen" right in front of it. I will add the title to this. Thanks all.

  • How to Add the title name for Graph in Excel

    Dear Friends
                      I am using LabVIEW 8.0.I need how to add the title name for chart in Excel.
    Jayavel
    Solved!
    Go to Solution.

    Do you have the Report Generation Toolkit? If so, the Excel Easy Graph VI has an input for that.
    If you don't have the toolkit then you will need to use ActiveX. Please do a search on how to use ActiveX (there are examples that ship with LabVIEW) to control Excel. There are also lots of example in the Excel thread. NOTE: DO NOT POST QUESTIONS IN THAT THREAD. 
    Ultimately you will need to look up the information in MSDN. 

  • How to add exiting event listener in javascript

    I am trying to figure out how to add an event listener in javascript for the exiting event when the red x is clicked on a Windows window (top right corner).
    I found this among adobe documentation, but it does not work:
    var app = air.NativeApplication.nativeApplication;
    app.addEventListener(air.Event.EXITING, closeHandler);
    function closeHandler(event) {
      alert("Goodbye.");
    And yes I have the AIRAliases.js included.
    Thanks

    The code posted above is from page 10 of the "HTML Developer’s Guide for ADOBE AIR (prerelease updated 11/16/2009)".
    I am actually exiting the program because I only have one window open and I click on the red x in the top right corner to shut it down... in theory, the example above provided by Adobe, should interrupt the exit sequence by displaying an alert box amd then shut the program down.
    Here's the excerpt from the manual...
    unload events (for body and frameset objects)
    Adobe AIR 1.0 and later
    In the top-level frameset or body tag of a window (including the main window of the application), do not use the unload event to respond to the window (or application) being closed. Instead, use exiting event of the NativeApplication object (to detect when an application is closing). Or use the closing event of the NativeWindow object (to detect when a window is closing). For example, the following JavaScript code displays a message ("Goodbye.") when the user closes the application:
    var app = air.NativeApplication.nativeApplication;
    app.addEventListener(air.Event.EXITING, closeHandler);
    function closeHandler(event)
    alert("Goodbye.");
    However, scripts can successfully respond to the unload event caused by navigation of a frame, iframe, or top-level window content.
    Note: These limitations may be removed in a future version of Adobe AIR.

  • Add Apex Region Button to a JQuery Dialog Box....

    Hello Everyone,
    I have created a JQuery dialog box modeled as in http://shijesh.wordpress.com/2010/04/10/jquery-modal-form-in-apex-4/. Now my only question is how do i add a region button inside the JQuery dialog box. Please i need this answer desperately.
    Thanks & Regards
    John Britto

    Hi John,
    You should be able to add the button as part of the region that has your first name and last name text fields. Just make sure your using a region position that is part of the region.
    If you are using APEX 4 a number of plugins also exist to do the same thing that may make your life easier. An really good example is:
    http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/skillbuilders-modal-page_138.html
    Thanks
    Paul

  • 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

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How to add a title to the book cover/spine?

    Hi,
    appears to be a stupid question, but I couldn't find any answer in the Videos by JK o any other help page:
    How can I add a title to he book cover and the spine of a blurb-book made in LR5?
    I could not find any cover template having a title (only a lot of text).
    Thanks a lot in advance,
        schleifi

    I have worked with Booksmart and made one book successfully. I have also made a book in Lr 5.2 and had it printed by Blurb to my satisfaction.
    Compared to creating a book in Lr the workflow in Booksmart is cumbersome and slow.
    (1) During the creation of a book in Lr I test the book often by exporting it as a PDF. This option is only available when you select PDF instead of Blurb - but it is possible to switch between PDF and Blurb without harm. The only change is that the Blurb logo page disappears when PDF is selected. Viewing the PDF in Acrobat tells me what the book will look like in print since my monitor is calibrated and set to the correct intensity (brightness).  It also tells me if my sharpening is good. For the export to PDF I select 100 for quality; color profile sRGB; file resolution 300; sharpening High; media type glossy.
    A Blurb representative told me that these settings come close to the settings that Lr uses when the book is uploaded to Blurb.
    In Booksmart I can't export to PDF.
    BTW you should sharpen the image so much that it looks a bit too sharp in your PDF. When the boook is printed the ink droplets spread out a tiny bit before they dry. This tends to make the print softer than it looks on screen.
    (2) Booksmart is not color managed. Therefore in Booksmart you have no feedback how your book will look in print. If you want to test your images you have to softproof them in Photoshop.
    (3) When I make a book I find often that my develop adjustments are not optimal. In Lr it is very easy to switch the the Develop Module, make the necessary adjustments and switch back to the Book Module. With Booksmart you have to export the adjusted image again - or it has to be re-published if you use the Blurb plug-in.
    (4) In the past I have made complaints that Lr does not give enough flexibility for the layout. Since then I have worked more in Lr and I find the Book Module actually quite good.
    I find that the full page bleed allows the most flexibility for creating my own layout. Starting with a full page bleed I use the padding feature to place the image anywhere on the page and in any size I want. The boxes for "Page Text" and "Photo Text" allow for more than one column. The text can be edited by adjusting Tracking (all letters are spaced wider/closer), Kerning (individual pairs of letters can be spaced), Baseline (letters can be pushed up or down), or Leading (the distance between different lines of text can be adjusted). There are no such features in Booksmart.
    (5) Selecting a color for page background or for text is cumbersome in Booksmart. In Lr it's easy.
    The cover of my first book in Lr looks like this:

  • How-to: add instructions to the Apple Wiki login dialog

    Here's an easy way to add some text to your wiki login dialog. I had to do this because at the school where I work, we have several sets of login credentials, and this allows us to instruct people what account they should use. You could really use it for anything though.
    Add this code to screen.css inside your theme folder:
    #logindialogform table thead tr td {
    padding-right:1px;
    #logindialogform table thead tr td:after {
    display: block;
    width: 235px;
    text-align: left;
    margin-top: 6px;
    font-size: 8pt;
    color: green;
    content: "This text will appear in your login dialog.";
    You can customize it to your heart's content. Works in Safari 3 & Firefox 3. There's probably a more semantically correct way to do this with xslt, but this works for me. This is a sample of what it looks like when you're done:
    http://chadvonnau.com/images/apple-wiki-add-login-instructions.png

    Hi,
    Based on my knowledge, Exchange has no built-in function to customize "Your password has expired and you need to change it before you sign in to Outlook Web App" notification text. Your understanding will be appreciated.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • How to call jquery function when i close modal dialog box ?

    Hello,
    I need to call one jquery function when I click on close button of modal dialog box.Can anyone please let me know how can I implement it ?
    Thanks,
    Dipti Chhatrapati

    Hi Dipti,
    If my understanding is correct, you are using SP Modal Dialog and want to track the close event of this dialog. Then you may use
    dialogReturnValueCallback parameter of Options variable. Follow is the code sample:
    function ShowModal() {
        ExecuteOrDelayUntilScriptLoaded(function () {
            var options = {
                url: 'page1.aspx',
                tite: 'Add Title',
                width: 800,
                height: 450,
                allowMaximize: true,
                showClose: true,
                dialogReturnValueCallback: scallback
            SP.UI.ModalDialog.showModalDialog(options);
        }, 'sp.js');
     function scallback(dialogResult, returnValue) {
          if (dialogResult == SP.UI.DialogResult.OK) {
               // call your Jquery method here...
    Thanks, Ram

  • When clicking on a pdf attachment in my email I would get a dialog box asking whether to save or open file. I inadvertantly clicked Save with the 'Always do this' option checked. How can I reverse this and get the option dialog box back. Win 7 Ultimate

    How do I get the dialog box back when clicking on a pdf attachment in my email. Made the mistake of clicking save while the check box was ticked.

    From Control Panel | Programs & Features: right-click on Windows Essentials 2012, then select Repair all Windows Essentials programs.

  • How do I get back to the newest file dialog box style in LabVIEW?

    I have LabVIEW 7.1 and LabVIEW 6.0.2 installed on the same machine.  When I doubleclick a .vi file it tries to open in LV602.  Of course, if it is a LV71 VI I get an error and it doesn't open.  Then I run LV71 and load the desired VI--in this case by using the Open arrow to find it in the "recently opened" list.  Now, I've made this mistake before, especially when I don't remember whether I used LV602 or LV71 to create the VI, and nothing bad has happened.
    But this time something undesirable did happen:  all Open File dialog boxes are of the old funky style.  How do I get the file dialog boxes back that I've grown used to seeing when I use LV71?
    CLUES:
    1.  I get the old style dialog box even when I try to open a VI--not just when a running VI invokes it.
    2.  The built version of the VI brings up the correct, new style, file dialog box--unlike the development environment.
    I haven't found any settings in the options area that would appear to affect the file dialog box style.  Has anyone ever seen anything like this?

    RudyRed wrote:
    Thanks for the response,
    Warren.  I think all my problems with LV versions coexisting
    peacefully have been related to NIDAQ--and I think the workaround (for
    supporting the different levels of LV DAQ VIs--see my response to
    Benoit, above) shows that it is not NECESSARY for NI to orphan old LV
    versions' DAQ functionality on the development computer, though it is
    still painful to be able to have only one version of NIDAQ available on
    a given target computer.  It's probably a marketting decision
    meant to encourage users to stay on the straight-and-narrow upgrade
    path.
    NI-DAQ has usually been working fine in
    several different installed LabVIEW versions on my computer. What is
    important is the order of installation. Start first with the lowest
    LabVIEW version and install the latest NI-DAQ that supports that
    LabVIEW version. Then go to the next LabVIEW version and install again
    the latest NI-DAQ version that supported this LabVIEW version and so
    on. I'm regularly working with 6.1 up to 7.1 and starting with 8.0
    slowly and haven't had real show stoppers yet.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I use metric units in Page Setup dialog box?

    When I go to my Page Setup dialog box, in Margins tabs, I see that I can specify the margins in inches. However, in my friends PCs, I have seen Page Setup dialog boxes that use millimeters for handling margins.
    How can I make my version of Firefox to use millimeters instead of inches? Using this obscure unit is inconvenient for me. I prefer to use the internationally-accepted metric unit.

    I can't find documentation about the settings, so you'll need to experiment a bit. I hope you're using A4 paper size instead if US- Letter, because I suspect that you will find out that the length of the paper won't be able to be set to Letter if you use the metric size unit setting.
    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    Pref name = print.printer_''printer_name''.print_paper_size_unit <br />
    and maybe <br />
    print.printer_''printer_name''.print_paper_size_type <br />
    Try setting the '''Value''' to '''1'''
    There's a support thread about metric settings here.
    http://forums.mozillazine.org/viewtopic.php?f=39&t=588284

  • How do I put two strings in one "string dialog box"

    example:
    testing connection.....Pass
    testing speed..........Pass
    testing motors.........Failed
    I send a string to a device and receive a string from this device.
    it is easy to print the string in a dialog box. but the problem is that the next string I get from the device overwrites the previous string.
    how can I put all incoming strings under oneanother?

    If you are using a while loop you can put a shift register inside, what else you need is a concatenated string input which will accept your string in the first input and the EOL char in the second.
    If you have a subvi, connect the string to the subvi's input and take the concatenated string at the output
    Take a vi in 6.1 as an example
    There are 10 kind of persons. Those who understand binaries and the others.
    Attachments:
    test1.vi ‏16 KB

Maybe you are looking for