Button to open a small pop-up window

what JS script can I put to open a to a pdf link in a pop up window  of 800 x 400 px dimensions

i found, but not help you.

Similar Messages

  • Small pop up window inside a portal page

    My portal page has one html portlet. I need to have a small pop-up window on this page which contains periodically changing messages(message is retrieved from a table in the database). The popup window should appear if the message inside the popup message has changed, otherwise it should not appear.
    this is my code below:
    declare
    cursor cur_popup is
    SELECT POPUP_MSG_READ_FLG
    FROM app_users
    WHERE PORTAL_USER_ID = portal30.wwctx_api.get_user();
    BEGIN
    open cur_popup;
    fetch cur_popup into msg_read;
    close cur_popup;
    IF msg_read = 'N' THEN
    url := PORTAL30.wwv_user_utilities.get_url('CAPS.LINK_POPUP');-- links to a portal page with popup
    portal30.wwv_redirect.url(p_url => url);
    ELSE
    url := PORTAL30.wwv_user_utilities.get_url('CAPS.LINK_without_popup');--links to a duplicate portal page without popup
    portal30.wwv_redirect.url(p_url => url);
    END IF;
    END;
    I don't want to maintain duplicate portal pages -one with onLoad=window.open('popup') and the other page without the pop up.
    Pls. suggest an alternate method. How can I pass parameters to the portal page and retrieve it in my portlet's javascript? Please let me know as I need it urgently.

    Hi Lavanya. I have implemented the same.
    Within my oracle tags, I'm using htp.print to produce the javascript for opening the window if it has not yet been viewed. It gets a bit confusing to produce one language syntax with another, but seems to work fine - you're kind of saved by pl/sql's single quote syntax vs. javascript double quotes!
    Some improvements I'd like to make are for cases where the browser has cached the content (which tells the browser to open a popup window) and to produce a receipt when the user clicks "OK" in the popup, rather than when the page is delivered.
    Let me know how it goes. Sounds like a common need - maybe we should get together and publish a new portal component! :^) Thanks, Luke.
    My portal page is not generated from within my pl/sql. My code just calls the link which,in turn calls the portal page. The portal page contains a html portlet, and the popup window is opened from <body onLoad = window.open(.....)>
    so, i cannot use htp.p here.
    Pls. help!!

  • Firefox will open a New Pop-up Window in Windows 7 Aero. When trying to Close it, it thinks it wants me to Close the Main Window. Why?

    I use Windows 7 Ultimate in Aero-mode. When a new Firefox window is opened, or a Pop-up window appears, I can't close it without first clicking on that page and clicking the "X" in the corner. Instead, whenever I try to close a window that is not the first window (my main window), it will ask me if I want to close the main window with all the tabs... I have noticed some other slight quirks in this stable release as well, but this one is always present.

    When I hover over the window, it does come up front, but as soon as I press the red "X" it goes immediately back to the main window and acts as if I was trying to close that one. Once in a while it will work, but shortly thereafter, it will just go back into this manner. Quite odd. This is the first time I've truly had any problems with Firefox.
    In addition to that problem I have noticed a few things, but one that may be linked is sometimes I'll click a link. Although I haven't specified to open it in a new window, it will do so anyhow. This gets annoying quickly. Usually shutting down Firefox and reopening will fix this (and once in a while just leaving it be for a long time). Somehow, I think this issue is somehow linked to the one above.

  • Open and Close Pop-up Window??

    Hi,
    I have to components consiider A and B.
    I want to open window B as pop-up window when I click a button on window A.
    After that again I have to close that pop-up window(i.e. B) and return back to window A.
    Thanks and Regards,
    Rahul

    Hi Rahul,
    In the onAction event of the button for component A you could use the following code :
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(wdComponentAPI.getComponentInfo().findInWindows("Window B"));
    window.setWindowPosition(270,120);
    ((Window)window).setTitle("My Window");
    window.open();
    wdContext.currentPopUpElement().setWindowInstance(window);
    In the onAction button event for component B to close the window you could use the following code :
    IWDWindow window = wdContext.currentPopUpElement().getWindowInstance();
    window.destroy();
    You could create a Value Node named Popup which contains a VA WindowInstance of type IWDWindow and define the context mapping.
    Hope this helps.

  • How to open a new pop-up window on click of a link using OAFunctions

    Hi ,
    I have a requirement to open a new pop-window on click of the responsibility name(functions available under responsibilities). The current URL /link is driven using OAFunctions.
    Any idea, how can i open a new window while still keeping the parent window as it is?
    Regards
    Puja

    This can be achieved, you need to first create the javascript function which will open the popup and add that to the HomePage through and then call that function during onLoad of the HomePage. Here is a code sample,
    1. Extend the page level controller and write a new controller
    2. Write the following code in processRequest before calling super.
    StringBuffer popupScript = new StringBuffer("function customPopUp() { ");
    popupScript.append("newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width=300,height=500);}");
    pageContext.putJavaScriptFunction("customPopUp", new String(popupScript));
    OABodyBean bodyBean = pageContext.getRootWebBean();
    bodyBean.setOnLoad("customPopUp");
    3. Use personalization to replace the existing controller with your extended controller and the popup should be launched whenever you enter the homepage.

  • When I open firefox, a pop up window asks "do you want to allow the following program to make changes to this computer? How can I get rid of this pop-up window ?

    Every time I open the browser, a pop-up window asks "Do you want the following program to make changes to this computer?"
    It is unnecessary and annoying to have to click "yes" each time.
    How can I get this pop-up window to stop?

    Thanks for the help I'll keep the info just in case - but I got so frustrated that I just deleted the program and then re downloaded the current version now everything works fine.

  • I need an AS2 button that closes out a pop-up window...

    So, I’ve constructed a portfolio site with ActionScript 2.0, but I would like the pop-up window that displays the portfolio image to have its own ‘X’ button that closes the swf movie from the browser.  I’m assuming that the code begins something like this:
    on(release){
    //actionscript 2.0 code that closes the browser window.
    Any suggestions on how this will work across platforms and browsers?
    Best,
    R.

    Hi kglad,
    My main flash as2 file has a stage size of 1200 width x720 height.  I’ve looked online through various methods on creating pop-up browsers that will display a portfolio image when a button on the main.swf is clicked.  Having no luck in finding what I needed (most tutorials just give getURL examples where the image is displayed in a separate tab), it finally dawned on me to create an overlaying movie, of the same size as the document size, on the top layer of the primary flash stage.  Setting the movie symbol as ‘invisible’ keeps the movie symbol inactive and invisible until called by an action.  The button on the main.swf that calls the movie has the following as2 script attached to it:
    on(release){
                   loadMovie("images/aauComp.swf", _root.movie2);
    However, the aauComp.swf file is where the exit button is located.  I need to implement an on(release){} method onto the exit button in aauComp.swf  that will close the movie out in the main.swf file.  Here’s the double wammy, though: the exit button on the called movie file, aauComp.swf, does not recognize any gotoAndStop(); or on(release){} functions relating to itself when it is loaded. For instance, since I could not find any functions that would close the movie out and return me to the main.swf interface, I wrote the following command on the ‘exit’ button in aauComp.swf:
    on(release){
                   _root.gotoAndStop("blank_frame");
    Where “blank_frame” is within a scene of aauComp.swf that is completely empty – which should, in theory, allow for interaction with the main.swf below the loaded movie since there is nothing on that layer of the loaded aauComp.swf movie.  Make sense?  The ‘exit’ button works fine when aauComp.swf is tested and published by itself, but when it is called into the main.swf with the loadMovie(); function, the 'exit' button will not work and, so, it will not forward to the “blank_frame”.
    Any suggestions?  Let me know if you need anything clarified.
    Thanks.

  • Code to get error message in small pop up window.

    Hi,
    I got this code to get error message in pop up window. But this code is giving null pointer exception.
    Can any one tell what is the exception. and how to solve it.
    IWDConfirmationDialog dialog;
              String dialogText = "Duplicate value ";
              dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
              dialogText,
               wdControllerAPI.getControllerInfo().findInEventHandlers("ok"),
              "ok"
              dialog.open();
    Regards,
    H.V.Swathi

    Hi,
    Most probably you are getting the null pointer exception because of wdControllerAPI.getControllerInfo().findInEventHandlers("ok") as WD is not able to find the ok event handler.
    I guess you have already defined the "ok" event handler in your view .
    Considering that the name of the event handler is "ok" , you can make the following change in
    your code
    confirmDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,wdThis.WD_EVENTHANDLER_ON_ACTION_OK, "ok");
    Regards,
    Ashish

  • Requirement to open FACTSHEET in pop-up window

    Hi there,
    I have a requirement to open a Customer Factsheet (component BSP_DLC_FS) in a pop-up window, when the user clicks on an icon (in a seperate component - Daily Appointments(CRMCMP_GS_WC) ).
    I am using the following code:
      call method COMP_CONTROLLER->WINDOW_MANAGER->CREATE_POPUP
        EXPORTING
          IV_INTERFACE_VIEW_NAME = 'ZAGRI_CRMCMP_GS/factsheet'
          IV_USAGE_NAME          = IF_BSP_WD_WINDOW_MANAGER=>CO_OWN_WINDOW
          IV_TITLE               = 'factsheet'
        RECEIVING
          RV_RESULT              = LR_POPUP.
    This code opens the popup correctly, but with nothing displayed.
    How can I display the component BSP_DLC_FS in this window?
    I think the key is with the IV_USAGE_NAME field, but despite many attempts to
    set this up in the Runtime Repository Editor, I can't get it to work.
    I created a window called 'ZAGRI_CRMCMP_GS/factsheet', but don't know how to
    link this (via the Component Usage) to the required component.
    Any help would be greatly appreciated.
    Thanks,
    David.

    just to update:
    I followed this very helpful guide,
    http://wiki.sdn.sap.com/wiki/display/CRM/CallingCustomcomponentaspopupfromastandardcomponentinCRMWEBUI-Part+2
    and changed the code to open the pop-up to this:
        lr_popup = comp_controller->window_manager->create_popup(
                                   iv_interface_view_name = 'BSP_DLC_FS/MainWindow'
                                   iv_usage_name          = 'factsheet'
                                   iv_title               = 'Factsheet' ).
    Having created the ComponentUsage to point at 'BSP_DLC_FS/MainWindow'.
    Still only opening the pop-up, just need to figure how to pass in the data and get it to display
    the factsheet as though opened via WebUI

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • Add button to open PDF in new browser window CS3

    I'm trying to add a button that says "Go" that will open a PDF in a new browser window.
    I've looked at the following article but don't see the "Select Action" pull-down.
    http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows
    Using Dreamweaver CS3.
    Thanks in advance.

    Hi,
    I hope I understood your question correctly, if so my suggestion may be helpful. Otherwise I think it's nearly the same what paul writes, I only made clear my proposal in a website for you, first a photo:
    and here is the link: http://www.goldschmiede-blumberg.de/pdf/adob_pdf.php.
    Note 1: "Ausgabe 9" und "ein Mausklick hier genügt" are links!!
    Note 2: " Um pdf-Dateien ...." Means: To read pdf files, you need the free Adobe Reader. The current version you can download from the Adobe website.
    Look at it's source code.
    Viel Erfolg
    Hans-G.

  • Minimize button doesnt work with mouse right button after openning a new tab in windows 8.1 with firefox nightly

    I'am using Mozilla firefox nightly version in Windows 8.1 .... after starting the Mozilla all toolbar options, minimize, maximum buttons works fine. but as soon as i open a new tabe the (minimize, maximize, close) options do not work with mouse left button clicking. I have to click taskbar "nightly icon" to minimize or close the browser.

    HI Ashraful_007,
    Currently Nightly is not a supported version and is changing each day, however please also to not be discouraged to try to start Firefox in Safe Mode to make sure it is not an add on as well as file a bug in bugzilla.mozilla.org.

  • In the last few days, Firefox takes a bit longer to open and now pop-up windows take about 10-15 seconds to open.

    I'm not sure if this is on the Firefox side or my computer. The timing to open a new window and a pop-up is very delayed.

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

  • Regarding opening a new pop up window

    In order to open open in a new window I have used the following two approaches
    1.public void FormHelpUrl(ActionEvent actionEvent) throws Exception {
    FacesContext context = FacesContext.getCurrentInstance();
    ExternalContext ectx = context.getExternalContext();
    HttpServletRequest request=(HttpServletRequest)ectx.getRequest();
    StringBuffer serverName=request.getRequestURL();
    String serverName1=serverName.substring(0, serverName.indexOf("workflow"));
    HttpServletResponse response =
    (HttpServletResponse)ectx.getResponse();
    response.sendRedirect(serverName1+"/dashboard_help/guide?topic="+topic+"&locale=en");
    The first approach opens in the same window only.
    2.public String formHelpUrl() {
    FacesContext context = FacesContext.getCurrentInstance();
    ViewHandler viewHandler = context.getApplication().getViewHandler();
    UIViewRoot dialog1=new UIViewRoot();
    UIViewRoot dialog = viewHandler.createView(context, "/dashboard/ohguide?topic=ohj_about_ui.htm&locale=en");
    HashMap properties = new HashMap();
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.launchDialog(dialog,
    null, null, // no particular parameters
    true,
    properties);
    return null;
    The second approach above opens in a window - but it is not taking the new context root
    UIViewRoot dialog = viewHandler.createView(context, "/dashboard/ohguide?topic=ohj_about_ui.htm&locale=en");
    here in the above code , it has to start with '/' , so unable to change context root . please help me out

    Hi Dean,
    The item names and item values are passed as comma delimited lists in the url, so your url should be:
    url = 'f?p=&APP_ID.:49:&APP_SESSION.::::P49_DETAIL_ID,P49_FLAG:'+p_val[b]+',0';
    Regards
    Andy

  • APEX:  Open a new Pop Up Window in PLSQL

    I call a stored procedure from APEX which generates a report in a directory defined in ALL_DIRECTORIES. After I call this stored procedure, I want to display the report just generated ( i know the filename and path) in a new window in my apex application. I am proficient in PLSQL but not in Java Script. Can anyone explin how to do this. I have tried to use window.open in plsql but it is not recognized.
    Sandra

    Thank you for pointing me in the right direction. I will used this stored procedure multiple times in this app as well as other apps.
    This is what I did.
    I created a stored procedure that passes in the directory name and filename
         Procedure p_uploadFileToBlob (v_directoryName varchar2, v_fileName varchar2) is
         v_filePointer     BFILE;
         v_fileContent     BLOB;
         src_offset     NUMBER := 1;
         dst_offset     NUMBER := 1;
         Begin
              v_filePointer := BFILENAME (v_directoryName, v_fileName);
              insert into flu_file_objects (name, subject, file_pointer) values
              (v_fileName, 'UsageReport',v_filePointer);
              update flu_file_objects set file_content = EMPTY_BLOB() where name = v_fileName;
              select file_content into v_fileContent
              from flu_file_objects where name = v_fileName;
              DBMS_LOB.fileopen(v_filePointer, DBMS_LOB.file_readonly);
              DBMS_LOB.loadblobfromfile (v_fileContent, v_filePointer, DBMS_LOB.getlength(v_filePointer),
                        dst_offset, src_offset);
              DBMS_LOB.fileclose(v_filePointer);
         End;
    THen with the help of this posting
    http://apex-notes.blogspot.com/2008/10/ora-01403-when-viewing-blob-data-in.html
    I was able to display the report. At first I tried to load as clob but I lost all report formatting. CHanged to blob and all worked great.
    Thanks again.
    Sandra

Maybe you are looking for

  • Esic contribution is not deducting on seperation cases in retro run.

    Dear Experts, Employee was got seperated in previous month (for example Oct) and now while executing retro run (Dec) for those employee ESIC is not contributing even though they comes in esic eligibility. Please advise.

  • More than 100 items in Form or Page

    Can Apex allow more than 100 items in a page? I am getting message like 'Item count exceeds maximum of 100'. Even data entered in the form for extra items over 100 is not posted to database. Pl help or suggest any workaround. I am using HTMLDB 2.0

  • Cannot use "java:" prefix in Context.lookup()

    I have observed a NullPointer exception when the "java:" prefix is used during a JNDI lookup with WL 5.1.0 Service Pack 4 on WinNT. Context ctx = new InitialContext(); Object obj = ctx.lookup("java:comp/env/ejb/BeanHome"); The work-around of removing

  • Crashing if I open a document, but not if I use the 'File' menu?

    I've got InDesign CS5 on Windows 7. If I open InDesign and use File > Open, I can launch my projects without trouble. If I go to the file in Windows Explorer and double-click it, InDesign launches, but hangs without opening the document and I have to

  • Adding Workflow Manager 1.0 databases to AlwaysOn Groups

    Hi, I have workflow farm with 3 servers for high availability. But I need help to add the workflow manager 1.0 databases to AlwaysOn availability group to have high availability for workflow databases too. Thanks & Regards, Kunal