Linking PDFs to open popup windows

I am working on a project at work in which we have PDF graphics in-line within a web page.  I want to add a link to one of the graphics to call a custom javascript function that is in the page to display a special popup window.  First off, is this possible?  And secondly, if it is, how do I tell it to call the javascript that is in the html page?
Chris Cote

In MVVM LIght 5 there is a dialogService you can use for this
http://marcominerva.wordpress.com/2014/10/14/dialogservice-in-mvvm-light-v5/

Similar Messages

  • Error: Open popup window failed

    Hi,
    I'm opening a web page in an StageWebView and by trying to click a link that should open a window, I receive this error:
    [StageWebView] Error: Open popup window failed
    This is the link "Invite your friends" at Google:
    https://developers.google.com/+/web/share/interactive#myBtn
    How to fix that? I hope anybody got an idea!

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • All my pdf scans open with  windows photo viewer what can I do to see them in Adobe Reader?

    all my pdf scans open with  windows photo viewer what can I do to see them in Adobe Reader?

    You need to change your file association to open .pdf files with Adobe Reader instead of the photo viewer program; see Change the program that opens a type of file - Microsoft Windows Help

  • Open popup window and bring text to opener window jsp [help~]

    how to click a button then open popup window.
    and add somthing in the popup window, that can bring the text in the popup window to opener window in jsp.

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • Links to open popup windows

    Hello everyone,
    I have a page with 2iframes in the first one the links that open a new page in the next frame. BUT I have had complaints that the iframe makes it too slow to open.
    I cannot tell wheter that is true or not, it could be something else that makes it slow but there is essentially not much else on that page.
    So instead of having the pages open in an iframe I thought that I would pop a small window with the answer to the question. I can do that with one window but I seem unable to make the code work with several windows. I do not want to have a bunch of buttons I would rather have a liste of text links where each opens its own window in a specific location and specific size when clicked. Do I have to have a snippet for each link? and if so what would that do to load time?
    I know this is a lot in one question and I appreciate your taking the time to read it and answer it if you can help.
    Thank you!
    Mireille

    Hi!<br>
    This one should be my list I link from to page 104. The first row is my ID I store in P104_ID:<br>
    <br>
    AV8B<br>
    C-160<br>
    C130H<br>
    E3A<br>
    <br>
    My link again:<br>
    <href="javascript:popupURL('f?p=&APP_ID.:104:&APP_SESSION.::::P104_ID:#AC_ID#')">#AC_ID#</>
    <br>Remark: I did'n forget the A in front of HREF!<br>
    My Page 104 looks like the other pages I did it in the same way:<br>
    Page-Title:  &P104_ID.<br>
    It shows allways my data "AV8B" or "C-160" or "C130H" etc.<br>
    My SQL-Statement looks as follows:<br>
    select UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AC_ID = :P104_ID<br>
    I can not understand why I can see in my title "AV8B" and the result of any SQL-Statement is the same: no data found!<br>
    If I replace in SQL :P104_ID with AV8B I get my result list. The obove statement was just a simple test script but doesn't work even if I use:<br>
    select AIR_UNIT.UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AIR_UNIT.AC_ID = :P104_ID<br>
    or using instead of the unit_name ac_id doesn't work either!<br>
    I've got really no idea!

  • How to display a PDF document in popup window

    Hi,
    I have a requirement where i need to display a PDF document to be obtained from a virtual repository and then display it on a popup window.
    Thanks
    DS
    PS: any code snippet or link explaining the above will be helpful

    Use should the ShowProperty servlet in a link or javascript, e.g.:
    <a href="/mywebapp/ShowProperty/path/to/pdf/node
    target="someOtherWindow">pdf</a>
    pdf
    Or, with dyamic node retrieveal (from search or contentSelector,
    assuming node is the pdf Node):
    <a href="/mywebapp/ShowProperty<cm:getProperty node='<%=node%>'
       name='cm_path' conversionType='url'/>
    target="someOtherWindow">pdf</a>
    <a href="javascript:window.open(
       '/mywebapp/ShowProperty<cm:getProperty node=<%=node%">"
    name="cm_path" conversionType="url"/>',
    'SomeOtherWindow',
    'height=400,width=400,scrollbars=auto,resizeable=yes');return false;">
    pdf</a>
    Greg
    Sanjay Datta wrote:
    Hi,
    I have a requirement where i need to display a PDF document to be obtained from a virtual repository and then display it on a popup window.
    Thanks
    DS
    PS: any code snippet or link explaining the above will be helpful

  • Display pdf in a popup window

    Hello @all,
    i want to convert a smartform to pdf and show the pdf in an second window or in a popup. When i click on a button in the application, a new window with the pdf should be open. Is this possible to show the pdf in a second window or in a popup. Can anybody help me?

    I think you need to create one window and display pdf in it.
    Try following code:
    1)  Create one Window
    2) Create the view to be displayed in popup (add pdf in this view)
    3)  Embed the view created in above step in the window created in first step.
    4)  Create following attribute in the Component controller:
         I) Z_WINDOW type ref to IF_WD_WINDOW
          Mark the attribute as u2018Publicu2019.
    Code to open Window in Popup
      DATA: api_component    TYPE REF TO if_wd_component,
      l_window_manager TYPE REF TO if_wd_window_manager.
      api_component    = wd_comp_controller->wd_get_api( ).
      l_window_manager = api_component->get_window_manager( ).
    Create window and pass parameters
      CALL METHOD l_window_manager->create_window
        EXPORTING
          modal        = abap_true
          window_name  = 'ZC_SO_ALV'
          title        = 'Test Popup'
          close_button = abap_true
        RECEIVING
          window       = wd_comp_controller->z_window.
      wd_comp_controller->z_window->open( ).
    Regards,
    Saket.

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

  • Captivate 4:  linked pdf file opens when published but closes project

    I have linked a couple of pdf files (Live Cycle) to an Adobe Cap 4 project.   When I published the Captivate file the pdf file opens and works well but once the user closes the pdf file to contine to the next slide the project closes.  Does anyone know how I can correct this?  (it works fine in preview but not when published)    Thanks!   

    Hi there
    How exactly are you opening the PDF? If you just linked to it without choosing the "New Window" option it will replace the Captivate project in the browser window.
    Perhaps you should examine the configuration of whatever is triggering the opening of the PDF. You should also review the information provided at the link below.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Pdf hyperlinks opening different windows

    All -
    Creating a pdf with about 10 hyperlinks to various web pages, however I do NOT want each link to open a new browser window or tab, I've tried target="_self" however this doesn't seem to help either.
    Any clues or suggestions to get all the links to only open within the same window?
    Thanx,
    Greg

    You know whats crazy. . . I was wondering the same thing today. I'd like to say I've done it before, and I think i have, and I think it was just as easy as clicking on it, but I haven't done it in a while so I can't be 100 percent sure.
    Thought - are you opening the Matrix windows as floating windows? Because if you are, that will keep you from opening multiple ones.

  • Can't open popup window in item renderer

    I have a datagrid with two columns. Each column has it's own
    itemRenderer. The itemRenderers have there own class. In one
    itemrenderer I have a link button and it has a click event that is
    associated with it in the script block of that class. Inside the
    click event I have the following code to create a popup:
    var popup_win:MyWindowType = MyWindowType
    (PopUpManager.createPopUp (this, MyWindowType , true));
    When I click the linbutton I will see a flash and a blur
    affect as if the window is trying to open but never does. I've
    traced "this" and it's the renderer... So I tryed to reference back
    up the that class that has the datagrid control... which is
    this.parent.parent.parent... but that doesn't work either. I'm
    basically trying to open a window that allows the user to choose
    some stuff from a radio button and then when they click ok on the
    popup window it does some validation and then the contents get's
    changed in the cell that it came from. I want the popup to open
    upon clicking of the link button or else I would use the editor
    functionality. Any ideas of how I could do this?

    Good Day
    I had the same idea for an itemrenderer....but I'm using the
    mouse_over event.
    A titlewindow pops up when moving over a row in the datagrid,
    and closes when moving out.
    The intent of the popup is to show some charts and additional
    links.
    However, when the popup shows, and I move my mouse into the
    popup box, the mouse movements are still being registered by the
    datagrid row below the popup box...hence making a new popup box
    appear every time I move the mouse.
    I tried to set focus on the popup alone...but still doesn't
    work.
    Here's the itemrenderer code:
    <mx:Text xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="_OnCC()" mouseOut="_mOut()">
    <mx:Script>
    <![CDATA[
    import mx.core.Application;
    import flash.events.MouseEvent;
    import mx.managers.PopUpManager;
    //import mx.controls.Alert;
    private var pop1:_popup_gridb;
    public var currentColumn:String = "";
    public function _OnCC():void{
    var currentXml:XML = new
    XML(data..field.(@columnname==currentColumn));
    text = currentXml.@value;
    text = text.toUpperCase();
    addEventListener(MouseEvent.MOUSE_OVER, _mOver);
    //addEventListener(MouseEvent.MOUSE_OUT, _mOut);
    private function _mOver(event:MouseEvent):void{
    //Alert.show("Hello World");
    pop1 = _popup_gridb(
    PopUpManager.createPopUp(DisplayObject(this.parentApplication),_popup_gridb,false));
    //PopUpManager.createPopUp(Application.application as
    Sprite,_popup_gridb,false));
    //PopUpManager.createPopUp(this,_popup_gridb,false));
    pop1.showCloseButton=true;
    pop1.id = "_pu" + Math.random();
    //pop1.dataView = dv;
    pop1.title = pop1.id.toString();
    PopUpManager.centerPopUp(pop1);
    //removeEventListener(MouseEvent.ROLL_OVER,_mOver);
    private function _mOut():void{
    PopUpManager.removePopUp(pop1);
    //addEventListener(MouseEvent.ROLL_OVER, _mOver);
    ]]>
    </mx:Script>
    </mx:Text>
    Currently, the popup is just a titlewindow w/a datagrid
    inside.
    thx
    j

  • I want to insert thumbnails in my page that are links to videos in popup windows

    I can do this by a hyperlink but getting a thumbnail from the video and making it a link I am struggling with. I could sort the thumbnail out as an image, but it is the link i don't know how to do. I can't seem to get hotspots involved with the js link as in:
    <script type="text/javascript">
            // Popup window code
            function newPopup2(url) {
            popupWindow = window.open(
            url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolb ar=no,menubar=no,location=no,directories=no,status=yes')
            </script> <a href=
            "JavaScript:newPopup2('pop.htm');">Link text</a>
    This works like a charm, but I can't swap the "link text" for an thumbnail and hotspot or however it is done.
    Help would be great.

    Create a Pop-Up window in DW with the Behaviors Panel.  See link for details.
    http://alt-web.blogspot.com/2012/03/create-pop-up-window-in-dreamweaver.html
    You shouldn't need an image map for this.  A single thumbnail image (or text) can be linked to a pop-up page.
    Nancy O.

  • To load a pdf file in popup window using flex

    Hi All,
    Can anyone send me the code for loading pdf file in a popup
    window using flex.
    Regards,
    Dharma

    try this action script
    var pdfUrl:URLRequest = new URLRequest("assets/file.pdf");
    navigateToURL(pdfUrl,"_blank");

Maybe you are looking for

  • Reversing a SAP reversal document

    Hello All, I have reversed a payment document and now it is cleared also. I want to reset this cleared document is this possible in production environment? Actually i had to do the reversal for 2008 which was reversed in 2009. I hope you will be able

  • MacPro3,1/10.8.2 intermittent freezes multiple times a day

    For the last two weeks my MacPro 3,1 has been experiencing three to five intermittent freezes per day. The last couple of days I have experienced nearly one an hour. I have not been able to peg it to any specific system update, application or hardwar

  • Do you know what means the error -17502

    Do you know what means the error -17502

  • Built in camera shows black image

    Intel iMac - camera shows black Photo booth is working, but camera shows a completely black image. When I click the "camera", it goes through the motions of taking a picture and saves the picture, but the picture is of course completely black. I trie

  • How do I add color flash in lightroom 5?

    When I am in Black and white picture and want to add color in particular part of my photo. How would I color flash my photo?