Create a pop up windows wth the javacript

hi there,
i got problem how to make ur own pop up windows with OK and CANCEL button with javascript inside my jsp page since i got already find it through all the internet and still hard to find it.
the popup windows should work like this:
if OK
move to another page
else CANCEL
remain to this page (do nothing)
anyone could help me with this problem. thanks so much.

May this can solve your problem...
if u have already confuse try the cheat one :)
window.open("your name page of JSP");
then in the JSP add button and now u can make a way form this button

Similar Messages

  • How to create a pop up window with text information?

    Hi experts,
    I am a newbie in LC and I have created a form to be sent to the vendors by our buyers.  Everything seems fine except the Accounting Manager would like to include our Financial Details in the form.  I would like to simply create a pop up window with the information which will be activated by pressing a button.  I have tried to create an invisible button and a visible button to achieve this but didn't succeed. 
    p.s. I have no javascript background but slowly learning.  I would appreciate if anyone can assist me to complete the task.
    Thanks a million.

    Hi Mdjco,
    Thanks for replying.  What I need to accomplish is to have another page of information with all the financial details on the pop up window and the vendor has a choice to print it out or not.  After the form is filled out, it is to be sent back to our buyers.  So instead of me inserting a 2nd page with the information, I would like to hide it unless someone presses a button to show it.
    I have found something like making 2 buttons, one is invisible with all the information on it and the other one "visible" to activate the invisble button.  Didn't work at all.
    Also another question is after the vendor insert the digital signature, it automatically asked to save (which I found out why from help) and then it opens up the email and sends the form as XML.  I will need it to send as PDF, possible??
    Much appreciated.

  • How to create a pop up window while creation of the delivery note.

    Hello Experts
    How to create a pop up window while creation of the delivery note.
    As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
    For e.g.
    Str. Loc     Qty      UOM
    DE01        100        KG
    DE99          50        KG

    Dear all,
    i m having two document numbers for invoic of same types such as output type print program and smartform.
    biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
    Directly the cursor comes to initial stage of vf03.
    suggest what to do
    Thanks and regarnds
    ravi

  • I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

    When I pushed a button, this pop-up window has to appear. There will be a slide control and a picture from a camera in this window. Is it possible to make appear this windows while main VI Interface continue to run ? How can I do this ? Thank you for your answers.
    Cyril.

    Here you go. This is simple example. Maybe not the best way, I am just
    beginner in LV and still not comfortable with data flow that much. I prefer
    events, so I would change this to use Event Structures.
    When you click on OK button on SliderMain, it opens Slider.vi. Now both
    windows are open and you can interact with both. Now if you click on OK
    again with Slider.vi open, you run into problems. Only thing I did was
    change VI properties of slider.vi, mainly window appearance.
    vishi
    "Cy" wrote in message
    news:[email protected]..
    > I would like to create a pop-up window appear from Labview Interface.
    > In this window, I will have a slide control and an image taken from a
    > camera. The main VI hav
    e to run while pop-up window is open. How can I
    > do ?
    >
    > When I pushed a button, this pop-up window has to appear. There will
    > be a slide control and a picture from a camera in this window. Is it
    > possible to make appear this windows while main VI Interface continue
    > to run ? How can I do this ? Thank you for your answers.
    > Cyril.
    [Attachment SliderMain.vi, see below]
    [Attachment Slider.vi, see below]
    Attachments:
    SliderMain.vi ‏16 KB
    Slider.vi ‏11 KB

  • Creating a pop up window.

    Hi Friends,
    If Sy-subrc <> o,
    some error message.
    But the error message should be as a pop Up window.
    So to create the pop window whats the procedure.
    Thanks,
    Shejal.

    Hello,
    I also try to create a pop-up window en use the following coding:
    if vbak-kunnr = '0000000484'.
      Call function 'POPUP_TO_INFORM'
      EXPORTING
      titel = 'pop-up'
      txt2 = 'pas op'
      txt1 = 'pas nog een keer op'.
      exit.
    endif.
    This pop-up only has to appear for customer 484 and this also happens. However the pop-up stays on the screen and I cannot continue with the order. What part in my coding is wrong or wat is missing?
    Thanks in advance,
    Ivo

  • Creating a "Pop Up" Window/Box in Sharepoint 2010

    Hi, 
    I have a CEWP with several image buttons in it. When a user clicks on the images, a "pop up" window should appear which will have several different links for the user to choose from. So when the user selects the the link he/she wants to go to,
    the user will then be directed towards that page/list/form. 
    How can i create a "pop up" window/box for the 1st requirement? 
    Any assistance would be appreciated.
    Thanks, Aarti

    Hi ,
    Pls check if it can helps you
    http://social.technet.microsoft.com/Forums/office/en-US/a2fec044-669f-45a2-b979-7ec324831a8b/how-to-create-a-popup-message-box-in-sharepoint-2013-?forum=sharepointdevelopment
    http://social.technet.microsoft.com/Forums/office/en-US/9b5a0fa5-0c09-4753-b276-8e8e42c21542/create-pop-up-window-from-a-listview-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to pass value from new pop up window to the input field

    Hi,
    i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15   LIMA  PLANT   45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
    do anyone know this?

    avoid duplicate threads
    F4 help in dropdownlistbox and values in input fields
    if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
    Raja

  • How To: create legaleze pop up window in pdf form?

    Hello all. I would like to incorporate a pop up window with my company's legaleze for authorization to use our images in our customers marketing materials. The purpose of the legaleze is to inform the customers our policy on using our images in their marketing materials. The pop up would obviously contain two radio buttons (1. I Agree AND 2. I Disagree) Where if they agree they can continue to fill out the form and request images. But if they disagree they will not be allowed to fill out the form and submit it.
    The form will be distributed via email, and be downloaded from our website.
    The most important aspect of this is that the pop up window with the legaleze function properly. The secondary aspect of the form not being able to be filled out if they disagree is not as  important. Obviously if I see that they disagree, I will not release the images.
    Thanks for your help!

    Adding layers to a PDF is a new feature in version 9 (you can work with layers in version 8, but have to add them in InDesign).
    In 9, add the layers Navigation Panel (View>Navigation Panels>...), then click the gear symbol and choose Import as Layer, and select your PDF with the legal agreement.
    You can control the layer visibility with a button action (one action is "set layer visibility"), and JavaScript can be used to show or hide buttons. So your accept button would have two actions, one layer visibility action and one execute JavaScript action that controls field visibility. A field called Name is controlled by changing that button's display property (hidden/visible):
    var a = this.getField("Name");
    a.display = a.hidden;
    etc.
    For more JavaScript info, check here.

  • TS3230 i get a pop-up window saying the current version of Safari does not support the community toolbar.  How do I get rid of this?

    i get a pop-up window saying the current version of Safari does not support the community toolbar.  How do I get rid of this?

    You need to uninstall the Community / Conduit toolbar add-on.
    Locate the files in bold print and move them to the Trash. The first five are in your root   /Library
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/ScriptingAddtions (anything CTLoader realted)
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    The next one is in your Home folder.
    ~/Library/Application Support/Conduit
    When you're done, try Safari.

  • I keep getting a pop-up window with the following message, even though I haven't got anything plugged in to any USB points.

    I keep getting a pop-up window with the following message, even though I haven't got anything plugged in to any USB points. It comes up every few seconds, often multiple times at once. Can anyone advise why it is happening and how to get rif of it?

    Reset your SMC.
    Resetting the System Management Controller (SMC) - Support - Apple

  • Pop-up windows from the portal showing address bar

    Hi,
    I am not sure where to post this thread, but here goes. My client has the CRM web UI which has been integrated into SAP Portal 7.3. I am not aware of how this is done as I am not familiar with CRM.
    The issue being faced is that when a user tries to create a new opportunity etc, the pop-up window opens. But an address bar is seen in the pop-up. This was not appearing when they were on an earlier version of EP.
    I am not sure where I should be looking to remove the address bar. Is this something related to the web UI and not the portal?
    Thanks & Regards,
    Vaishnavi

    Hi,
    Take a look at the following:
    [http://forums.sdn.sap.com/thread.jspa?threadID=1800949]
    [Using iView Parameters to Open Applications in Separate Window|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d2aeb9-5f92-2d10-d38d-ded09c94330d?QuickLink=index&overridelayout=true&48747879654994]
    [http://forums.sdn.sap.com/thread.jspa?threadID=124909]
    Regards,
    Alex

  • Creating a pop up window on button click?

    Hi
    How would I create a pop up modal window when a user clicks on a print button within an interactive report. This window would then display a message with a confirm or cancel button. If they click on confirm the page prints out and if they click cancel it takes the user back to the report
    Is this possible? if so how is this achieved?
    Many Thanks

    The confirm dialog is a native dialog in the browser. It will display a message and it has an ok and cancel button. Running it in javascript will prompt the user with the dialog, and the return value will be true or false depending on the button clicked.
    You don't need any extra page whatsoever.
    var r=confirm("Press a button");
    if (r==true)
    x="You pressed OK!";
    else
    x="You pressed Cancel!";
    }This would prompt you with a small dialog, asking "Press a button.". Clicking Ok or Cancel will return true or false to variable r, which in this code is then tested.
    You could shorten it up to
    if(confirm("Do you want to print?")){
       //execute print code
    };Alternatively, if you are on version 4.0 or higher you can use a dynamic action for this. Set the action to fire on the click of a button, and as a true action you can choose the confirm action, which then lets you display a text.

  • How to stop a pop up window if the session expires

    Hi
    I have a situation wherein i have my jsp page. in that i have a button on clicking it a pop up window will open to take a input parameter.
    Now what we want is that if the session is not valid than the pop up shud not open.
    Currrently what is happening wen the session is not valid the popup gets open and in that popup a login page is coming.
    The logic for pop has been put in a javascript code which gets executed when the page was first loaded . So even if i put a logic for checking the session before the popup opens it wont work. So what can be a possible way i can do it?
    I am writing a scriptlet to check the logic for valid session.
    function changeLimitFunc(count)
         <% if ((request.getSession(false)== null)) {%>      
              return false;
         <%}
         else {%>
    popUp('');
              openedForm.target = 'change_download_limit';
              openedForm.submit();
    <%}%>
    and in the page which geot loaded the same code appears like
    function changeLimitFunc(count)
         popUp('');
                   openedForm.target = 'change_download_limit';
                   openedForm.submit();
    this popUp is amethod where we are createing our popup.
    please help me out to resolve it

    I have written this javascript code to block the popup
    function changeLimitFuncUnopened()
    if (checkIfValidSession()) {
              popUp('');
              unopenedForm.target = 'change_download_limit';
              unopenedForm.submit();
              else {
              return false;
    function checkIfValidSession() {
    <% HttpSession httpSession = request.getSession(); %>
    var lastAccessTime = <%= httpSession.getLastAccessedTime() %> ;
    var maxInactiveTime = <%= httpSession.getMaxInactiveInterval() %> ;
    var date = new Date();
    var time = date.getTime();
    if( (maxInactiveTime > 0) && ((time - lastAccessTime) > (maxInactiveTime * 1000))) {
         alert("Session TimedOut. Please Re-login!!!");
         return false;
    else {
         alert("inside else true shud go");
         return true;
    The code is working fine and blocking the popup. But I am not sure if this will be a correct fix.

  • Trying to create a pop-up window creates 2 identical windows

    Hello,
    I am trying to accomplish the following:
    Clicking text in my webpage and causing a small pop-up window to open.  I have tried this 2 ways: the first way, I get a new tab in my browser, but it is full-sized; the second way, I get a new tab in my browser AND a small pop-up window.
    Here's the first way:
    1. highlighting the text that should be an "object."
    2. entering a URL in "Link."
    3. defining the "Target" as _blank
    This opens my link in a new browser tab.  This is good, but I'd like this to be a smaller pop-up window so that my full-sized webpage remains in the background.  Please note that if I select any other option for the "Target" or leave that box empty, my webpage is replaced by the url entered in the "link",
    Here's the second way:
    1. highlighting the text that should be an "object."
    2.  entering a URL in "Link."
    3. leaving the "Target" box empty
    4. selecting "open browser window" in "behaviors" and defining that window as a smaller size
    This opens my link in a new browser tab AND opens a smaller  pop-up of that same link.  My webpage remains in another browser tab, but is not showing in the background (I have to close both the pop-up and new browsesr tab in order to get back to my webpage).
    Dreamweaver doesn't allow me to leave the "Link" field blank and select "open browser window" in "behaviors," which I believe is causing thi redundancy.  Since my "object" is not an imported image, but rather, text (such as "click here" that I hope to turn into an object), I wonder if I have to import some kind of file (e.g. jpg, etc. ) as an object in order to achieve my goal.  Can anyone tell mw what I'm doing wrong?
    Thanks in advance for any help!
    Heather

    John,
    Thank you for your reply--since you need to use javascript for this, I take it this is either not possible or very difficult to do in Dreamweaver?
    I'm going to try your script.  May I ask a few questions first?
    1.  Can I do this for multiple links on one page, and if  so, which parts would I repeat and where/ how?
    2.  Which of the values in quotations below do I replace with my own data?  I think it's "my-file.htm," "A PopUp Window of Helpful Search + Information Links" and "open_links()"?
    3.  For the part that goes "anywhere you want in the body," do you mean by "body" the general section with that type of data in it?  Or does that mean anywhere on the page?
    4.  Finally, If I prefer not to create a button, but rather, to leave it as text with a highlighted color for a link, is that possible?  I think it would require an input type other than "='button'", but what are my other options?
    Thanks again,
    Heather

  • A question about not having a pop up window for the hyperlink

    Hello!
    Now I am creating a hyperlink in my InDesign. After I transferred my indesign file into pdf and clicked on the link. There was always a pop up window asking me if I agree on going to this website or not. I don't want the people who recieved my ducument have this trouble. Is there a way for me to fix this? Thanks!

    See: http://helpx.adobe.com/acrobat/kb/security-warning-trusting-pdf-acrobat.html

Maybe you are looking for

  • Error when activating the BEx history

    Hi, When I am trying to activate the BEx history through transaction 'RS_PERS_ACTIVATE', I am getting the error saying  'Activation of BEx History failed'. Then when I checked the DSO '0PERS_BOD' it is inactive also the corresponding table '/BI0/APER

  • Can't update AMD graphics card drivers in Macbook Pro 15" 2011

    I've been having this problem for a while now, and from what I understand, it's a fairly common issue with bootcamp but I have not been able to find a solution to the problem nonetheless. I am using a 15" Macbook Pro from 2011 (purchased in early Sep

  • IPad can't get in the internet via a WPA2 Enterprise setup

    I've seen some similar posts and no real answers. My Office just got set up with Wireless, it's cisco gear and using RADUIS to authenticate. What they told us to do on the windows boxes was this: Connect to the SSID use WPA2 Enterprise Authentication

  • WebCenter Content Connector Integration

    Hello, I have a problem to test the WCC Connector integration for WebCenter Sites. I had and Error -3 when connector wants to save all assets from WCC. I don't have external Ldap I use Weblogic for WCC and I use internal for WCS Thanks for yours help

  • KB 2734608 - problem

    Because we have already Win8 clients in our environment i had to try this Patch on my WSUS 3.0 SP2 (which is a SCCM 2007 R3 WSUS). Being careful i installed and tested it first on my lab machine which is a 2003 R2 server. No problem, the installation