GetURL("javascript:var myWin=window.open

Hi,
Built a bunch of PDFs using Acrobat Pro 6 -
They are viewed in a web browser and use:
getURL("javascript:var myWin=window.open('http://www.website.com/myfile.asp', 'aWin', 'width=450,height=450,top=150,left=150, scrollbars=1, statusbar=0, menubar=0')");
to open a web page, with a fixed size.
The javascript links do not work in the current Reader.
What do I need to do?
Thanks,
Pappy

Not at all.  You can edit your JavaScript in Acrobat 6.x but Acrobat 6.x  just won't recognize the launchURL(); method.  You could use Reader 9.0 to test the JS to make sure it's working after doing the edits.
Oh!  I almost forgot you can find the new JS API documentation here to make sure you have all the parameters correct for the method.
http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.ht m?&accessible=true

Similar Messages

  • Window.opener becoming null after 10 seconds

    Wondering if anyone else has ran into this problem...
    function refreshMe()
    var openerObj = window.opener;
    window.close();
    alert(openerObj);
    openerObj.opener.location.href = openerObj.opener.location.href;
    openerObj has a value of [object DOMWindow] when a new window pops up. But when I wait approximately 10 seconds the value is becomes null.
    Any suggestions or advice you may have is appreciated.

    Basically I'm using Javascript to pop up a window (child). That window changes to another URL (sub child) after a user selection... Once that pop up form submission is complete I want to refresh the original parent window and close the sub child.
    To accomplish this I'm using window.opener.opener.location.href (the original URL) which should be saved by Safari. The problem is after approx. 10 seconds the window.opener variable becomes null. I'm guessing this is something related to Sarfari and not my code...
    However, I'm open to any suggestions. Thank you.

  • Window.opener  property from child window to parent window

    Hi
    When communicating between the child (popup) window to the parent window works fine as long as we pass the static reference to the window.opener
    Example :
    Main Page
    form name = staticform
    input name = col1
    Popup Page
    javascript :
    window.opener.staticform.col1.value = some value
    How can I use a dynamic reference for the staticform.col1 in the window.opener property to post the value back to the parent window ?
    thanks for the help
    sarma

    Actually, I think tolmank's would work... I've done basically the same thing before, but more like this (if it's generic, it's a good idea to have checks for the things being in existance). This is something I used in a generic color chooser I wrote in Javascript. Had multiple fields in one form using it for selecting different foreground/background colors.
    <%
    String form = request.getParameter("form");
    String fgfield = request.getParameter("fgfield");
    String bgfield = request.getParameter("bgfield");
    %>
    vfnSet = function() {
       if(typeof(window.opener) == 'undefined' || window.opener == null) {
          return;
       if(typeof(window.opener.document.forms['<%= form %>']) == 'undefined') {
          return;
       var oForm = window.opener.document.forms['<%= form %>'];
       if(typeof(oForm.<%= fgfield %>) == 'undefined') {
          return;
       if(typeof(oForm.<%= bgfield %>) == 'undefined') {
          return;
       oForm.<%= fgfield %>.value = document.forms['colorform'].foreground.value;
       oForm.<%= bgfield %>.value = document.forms['colorform'].background.value;
    }

  • CairngormCommand - EventHandler - ExternalInterface - HTMLPopup - window.opener == null !!!

    Hey,
    I stumbled over a strange behavior... First I thought it's the PopUpBlocker
    I successfully implemented the payPalFlex solution. Only difference is, that I need to create a OrderHeader Entity before calling the PayPal-PopUp Window.
    So if I cancel the PayPal process and want to make the callback via. JavaScript to Flex (it's the onCancel part...)  the window.opener is null?! So I am already searching about 5 hours to find out what happened there. I think it's because I am not running in the main thread anymore.
    (I already tried to implement this with a changeWatcher and the Cairngorm successHandler Pattern...)
    Do you have a clue what's the Problem?
    Thanks!!!!
    some code out of my cart:
    // this gets called from button "Pay with PayPal"
    private function doPayWithPayPal(event:Event):void {
            // first create the OrderHeader
         var orderHeader:EOrderHeader = new EOrderHeader();
         orderHeader.id = 0;                    
         orderHeader.orderNumber = 0;               
         orderHeader.customerID = 0;                
         orderHeader.giftCodeID = 0;
         orderHeader.shipmentTypeID = 0;
         orderHeader.fulfillmentFlag = 'F';
         orderHeader.dateOrderDate = new Date();          
         orderHeader.orderTotal = sumOrder;
            // dispatch event to create orderHeader on Server
         var orderHeaderEvent:OrderHeaderEvent = new OrderHeaderEvent(OrderHeaderEvent.SAVE_ORDER_HEADER);
         orderHeaderEvent.orderHeader = orderHeader;
            orderHeaderEvent.successHandler = orderHeaderSaved;
         orderHeaderEvent.dispatch();
    protected function orderHeaderSaved():void {
         if( AdminModel.getInstance().returnedOrderHeader == null ) {
              Alert.show("Error!!!");
         var orderID:Number = AdminModel.getInstance().returnedOrderHeader.id;
         var requestURL:String = "remote/payPalFlex/startPaymentFlex.php";
         ExternalInterface.call('window.open','about:blank',
              'myWindow','height=500,width=900,toolbar=no,scrollbars=yes' );
         var url:URLRequest = new URLRequest("remote/payPalFlex/startPaymentFlex.php");
         url.data = new URLVariables();
         var obj:URLVariables = new URLVariables();
         url.data.useAs = orderID;
         url.method = "GET";
         navigateToURL(url,"DomainStickersWindow");
    in cancle.php:
    <html>
    <head>
    <title>PayPal PHP API Response</title>
    <script type="text/javascript">
         function doCancel() {
              window.opener.window.document.getElementById('index').doCancel();
              window.close();
    </script>
    </head>
    <body>
      You canceled, close to go back to the shop blablabl...
    <a href="javascript:doCancel()">ZurŸck zum Shop</a>
    </body>
    </html>

    Not solved yet but it seems to be a Safari specific Problem.

  • How to get the window.opener object into a model window

    Hi,
    I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
    for e.g.
    var caller = window.opener
    then caller can be used as object but if i do like this
    var caller = window.dialogArguments
    then i can't use caller as an object.
    Can anybody tell me the correct way.
    manish

    Hi Manish,
    I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
      Caller page
      // showModalDialog for Non-IE browsers
      if (!window.showModalDialog) {
        window.showModalDialog = function(sUrl, vArguments, sFeatures) {
          var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
          var modalWindow = window.open (sUrl, "_blank", wFeatures);
          modalWindow.setFocusToWindow = function () {
            modalWindow.focus();
          modalWindow.setInterval ("setFocusToWindow()", 100);
      // Show modal dialog...
      window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
      modal_dialog.html
      // IE only - other browsers will be fine
      if (window.dialogArguments) {
        window.opener = window.dialogArguments;
      // Write something back in the opener window
      window.opener.document.write ("here you go...");

  • Window.opener

    HI,
    We've got an external ITS application with a popup window to call.
    we called it with:
    var w1=window.open('', '', windowprops);
    w1.document.write("<html><head></head><body>Hello World</body></html>");
    and it worked well.
    But on internal ITS it doesn't work anymore. (it creates an empty IE6-page - on Firefox it still works)
    any suggestions?
    A similar problem is also, that (from the popup window) we cannot receive data out of the source page e.g.:
    document.getElementById('abc').innerHTML = this.opener.document.getElementById('def').value;
    "this" means the popup window object.
    this.opener gives an empty object (and thats the problem!)
    This problem occurs in both browsers, IE6 and FF.
    We use SAP ECC 6.0.
    Message was edited by:
            Ralph Schillein

    no, sorry.
    That was the wrong OSS number. I found the right one, and we patched our system accordingly - but the problem still persists.
    any other suggestions?
    thanks,
    ralph

  • Named Destinations with window.open

    I have a ColdFusion application that opens a reference document to a specific point of reference.  I had been using an html page with anchors for the reference document but would like to use PDF with named destinations.
    The code I am using is from a button click event:
    <input type="button" value="Reference"
      onClick="var ptr = window.open('../reference/<cfoutput>#reflink# </cfoutput>','popup','width=600,height=600,scrollbars=yes,resizable=yes,toolbar=no,direct ories=no,location=no,menubar=yes,status=no,left=500,top=0'); if(ptr) ptr.focus(); return false">
    The reflink variable would be something like "myreference.html#myanchor for html and "myreference.pdf#mydestination" for pdf.
    The code works fine for html.  The click event pops the window and displays the anchor location.  Another event will refresh the existing open window with the new location.
    With the pdf, the first click works correctly.  The second click clears the document view to blank and the first window is effectively hung.  If I click again, a new window is opened and the first window remains blank.
    If I don't use named destinations, the window is refreshed each time with the pdf file and the not hung.  So the problem only occurs when there is a named destination in the URL.  But I need named destinations to zoom to the reference location.
    This occurs with IE 8.
    When I use Firefox, the behavior is different.  The window pops correctly, but after the first attempt, it does not navigate to the correct named destination.  Any subsequent click event results in the pdf file staying at the existing location.

    Yes, I think you're right. I tryed the same in the HTML-protocol and it works: example:
    http://profiroll.fidom.de/pdf/01_Lastenheft_PPA_LH3_8.1_Elektrik.pdf#page=42
    It would be nice to find a workaround to use this "addressing" in MS-Office!

  • Opening multiple URLs using window.open in Safari 3

    Anyone know how to write javascript to open multiple URLs at once using Safari 3? Code like this worked fine in Safari 2, but when I upgraded to 10.4.11, Safari 3 now only opens the first URL when the javascript is run.
    window.open(url1);
    window.open(url2);
    window.open(url3);
    Thanks!
    BTW, I'm also using Saft (and had been using it before when this worked).

    If the Saft preference of "Always open browser window in tab" is unchecked, then Safari 3 will open each of the URLs in new Windows.
    I've written to the author of Saft about the issue and will follow-up here with more details when available.

  • Windows open from button - MVC3

    Hi,
    I have detected an issue when I tried to open a new windows through a button (this is an MVC3 web application). When I click on the button the page is redirect to the login page instead of the right one. The same project is working properly in another server
    and the path is the same one in both systems.
    Could you please tell me if you detect any mistake in the following code. Perhaps I am missing something:
    *.cshtml
    var link = Url.Action("ChtmlPageName", "FolderName");
    string url = String.Format("{0}/Index?objectId={1}&userID={2}", link, Model.ObjectId, Model.UserId);
    <input id="btn1" name="submitButton" type="submit" value="Text" title="Text" />
    <a id="urlHiddenValue" href='@url' style="display:none"> text </a>
    *.js
    $('#btn1').click(function () {
    var targetUrl = $('#urlHiddenValue').attr('href');
    var win = window.open(targetUrl, "Print", "toolbar=no,location=no,status=yes,directories=no,menubar=no,scrolling=yes,scrollbars=yes,height=1000,width=1000,resizable=yes", false);
    win.focus();
    return false;
    Thank you for your help

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • How to remove address area in the New window opened using  getURL()?

    Hello everyone,
    I am trying to open a NEW window from Flash and I am using
    the following code to do so.
    getURL("javascript:window.open('
    http://www.MyDomain.com/demo/','Demo',
    'width='+((screen.width*3)/4)+', height=' + ((screen.height*3)/4) +
    ', top=' + ((screen.height*1)/16) + ',
    left='+((screen.width*1)/16)+' , fullscreen, toolbar=no,
    scrollbars=yes, resizable=yes, menubar=no, status=no,
    directories=no, location=no'), void(0)");
    This line of code opens a NEW window but I still have web
    address area available in the new window. Can someone be kind
    enough to tell me how I can remove the web address area on the top
    of the window?
    Thank you very much and have a great day.

    Thanks for answering Frank, goLink may be linked to a method of backbean?
    That what we need is to generate jobId through a method and immediately after deployment of the report on another page.
    Already tried to goLink component but unfortunately does not have the property to execute a method Action.

  • GetURL - javascript - popup window

    Hi!
    I need to get a button to open a new, fixed-size, pop-up
    window.
    This is what I used:
    on (release) {
    getURL("javascript:window.open('ponuda_tjedna.html','Ponuda
    tjedna','width=350,height=250')");
    It works just fine, opens a new window etc. but the main
    window where the button is (where the site is) goes blank, white..
    and in the upper lef corner it says: [object Window]. If I click
    BACK, it restarts the entire site.
    What can I do to keep the main window where it is?
    I've also tried writing a function in javascript directly
    into the <head> tag of index.html and call the function from
    within Flash, using getURL. That did open a new window and the main
    site didn't go blank, but in IE nothing happened.
    Thanks,
    Igor

    > on (release) {
    >
    getURL("javascript:window.open('ponuda_tjedna.html','Ponuda
    > tjedna','width=350,height=250')");
    > }
    >
    > It works just fine, open a new window etc. but the main
    window where the
    > button is (where the site is) goes blank, white.. and in
    the upper lef corner
    > it says: [object Window]. If I click BACK, it restarts
    the entire site.
    You need void(0) with window.open because it returns stuff
    and if you don't void
    the request it will do exactly what it does to you. Not the
    case if you are using
    NewWindow function. Anyway, try this instead:
    getURL("javascript:n_name=window.open('ponuda_tjedna.html','Ponuda_tjedna','width=350,heig ht=250');void(0);");
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • IPad 2 Safari javascript window.open bug

    I am building a web app that uses the PicUp app to upload photos.
    Part of how it works requires me to open a new tab with javascript, which fires some script to open a new url in an iframe on the previous page.
    I have named the 'windows' accordingly, and it works properly on the iPad 1 (Safari).
    But in iPad 2, the window.open function does not seem to take in a target window parameter, resulting in broken UI. The new tab opens, but the script to open a new URL in the other page's iframe does not work.
    My image still uploads, but the user would be confused, as there is no confirmation screen.
    Help!
    PS: I would also like to comment that it is fairly convoluted to have to download a 3rd party app just to handle http uploads, something every other browser can do natively. What is the reasoning behind not allowing iOS Safari to upload like normal?
    Thanks
    John

    Was able to produce a small test case. 
    To demonstrate this problem, there are three pages.  You will need to load window1.html.  That page has buttons to load the other windows.  Make sure all files are in the same directory.
    window1.html
    <html>
    <head></head>
    <body>
    <script>
    window.name='win1';
    var si = setInterval('check()', 1000);
    function check()
        var d = new Date();
        var s = d.toString() + ' hash: ' + window.location.hash + "\n";
        var log = document.getElementById('log');
        log.value += s;
        log.scrollTop = log.scrollHeight
    </script>
    <form name='myform'>
    <input type=button name='cmd' value='Start second window (no close)' onclick="window.open('window2.html', 'win2')">  
    <input type=button name='cmd' value='Start third window (with close)' onclick="window.open('window3.html', 'win2')">
    <br />
    <textarea cols=80 rows=10 id='log'></textarea>
    </form>
    </body>
    </html>
    window2.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from2','win1');
    </script>
    <p>This is window2.html</p>
    </body>
    </html>
    window3.html
    <html>
    <head></head>
    <body>
    <script>
    window.open('window1.html#from3','win1');
    window.close();
    </script>
    <p>This is window3.html</p>
    </body>
    </html>
    Test scenario:
    If you run window1.html, you will see it is updating the text field with the time and displaying the current hash.  If you press the button 'Start second window (no close)', you will see another tab open up and stay there and the window1 text field will display the hash 'from2'.
    You can close the window2 tab if you want now (don't think it matters).
    If you then press the button 'Start third window (with close), the window1 tab is gone and window3 is still up there.  The title bar says it is window3 but it is not even displaying 'This is window3.html'  If I do a view source (using a javascript bookmark), it does show the window3 script but the <p> and text is not there.  Probably died in the script before parsing was finished.  This is the first problem.
    Now load the window1.html again in the browser (type on URL line).  If you press the 'Start second window (no close)", the one that worked before, and click on the window1 tab to view it and display the updating text box, you will see it did not see the hash change.  This looks like that physical tab was corrupted in Safari from the window 3 test.  I just found if you open a new tab, the new tab will be ok to run the second window (no close test).  At least until you run window3 (with the close).

  • Javascript window.open needs to always open in a new window

    I am tring to create a menu system. When the user selects an item, then clicks Open Application, I want them to be able to open the application in a new browser window with specific window prefs.
    I have added this javascript to my page html header
    function launchAbout() {
    about = window.open("&P2_URL.", "CAT", "&P2_WINDOW_PREFS.");
    return false;
    I then have a html region with the source as:
    A HREF="&P2_URL." onClick="return launchAbout()" <img src=/i/ocpa/open_app.jpg></A>
    When I click on open app, the first time the app will open in a new window, but the second time it will just change the already open window to the new app. If I create new function then the new function call will open in the new window, but the next time it will just refresh.
    It seems like this function only opens a new window the first time it is called. Does anyone have any ideas how to open a new window every time?
    Edited by: user531645 on Sep 24, 2009 7:33 AM
    Edited by: user531645 on Sep 24, 2009 7:38 AM

    I was able to fix my problem. I had to change the java script to this:
    function launchAbout() {
    about = window.open("&P2_URL.", "_blank", "&P2_WINDOW_PREFS.");
    return false;
    }

  • Javascript Issues with 'javascript:window.open'

    Hi guys,
    Really hoping someone can help out here. To set the scene I have detailed a similar example from the OEHR Schema based on the EMP table.
    I have a page defined with a classic report with all the contents of the EMP table, for example :
    HIREDATE | SAL | COMM | DEPTNO | MGR | JOB | ENAME | EMPNO |
    I have edited the column EMPNO report attribute so i can create a link from the EMPNO column, in the Column Link section i have defined the following attributes :
    Link Text : #EMPNO#
    Target : URL
    URL : javascript:window.open('f?p=&APP_ID.:28:&SESSION.::NO::P28_EMPNO:#EMPNO#');
    So in the URL i call the javascript function to open a new window, passing the Application ID, Page 28, Session ID and a parameter for the EMPNO.
    So far this all works fine, the new page opens which is also defined with a report region, however this time i pass the parameter item P28_EMPNO into the SQL to return just that row. I understand that from a security stand point this is probably bad practise however, at the moment this appears to be the only way i've managed to figure out how to create a pop up window passing parameters.
    The problem though is the original APEX page must be doing some sort of branch when the EMPNO link is passed, as the page refreshes with the following :
    The actual URL used is : javascript:window.open('f?p=101:28:2506768909457997::NO::P28_EMPNO:7369');
    and the page just displays : [object Window]
    Hope this makes sense.
    Thanks in advance

    Report your problem to Apple here: http://www.apple.com/feedback/ipad.html

  • SSRS Action URL via javascript:void(window.open doesn't work in IE

    Hi,
    I am using the following code to open "google.com.au"
    in a pop-up window through SSRS Report -> Action -> URL 
    ="javascript:void(window.open('"+
    "http://www.google.com.au/" +
    "','_blank','scrollbars=true,status=true'))"
    The script work fine in Chrome and FireFox but not IE ( we are using IE 11.0 ), any idea what's going wrong?
    ( When we click on it ; Nothing appear in IE )
    Thanks.

    Hi Yu,
    1. We are using SQL Server SSRS 2008 R2 in IE 11.0.9600.17501 environment ( Means we already have the latest IE 11 Patch )
    2. Did you try put in Javascript in SSRS Cell -> Placeholder Properties -> Action -> URL?     
        i.e. ="javascript:void(window.open('"+ "http://www.google.com.au/" + "','_blank','scrollbars=true,status=true'))" 
    3. All reports are having the same phenomenon.
    4. I used F12 and tried IE7, IE8, IE9, IE10 all same ( ALL couldn't  POP UP window ).
    5. Please refer to attachment, I found out that when I go to Cell -> Right click -> Inspect Element & change
    target="_top" to
    target="_self" then the problem gone.
        BUT... how to set target="_self" in SSRS? 
    Regards,
    Frank

Maybe you are looking for

  • GR and IR posted to different GR/IR accounts

    Hello Gurus, We have an issue that GR and IR are posted to two different GR/IR accounts against a PO. This was because Vendor reconciliation account was changed after the initial GR posting. Please advise how to rectify. Many Thanks, Leelendra

  • White jagged edge around masked image in InDesign CS2

    I have an image with a black background which I have masked out that I'm placing into a document in InDesign CS2 that has a black background. There is a jagged white "halo" along he masking line that gets worse the farther out you zoom and disappears

  • GL account changes

    Hi Experts In FS10N transaction , I want to copy as ZFS10N and make the GL Account field as disable so that no user can changed the GL account, I want to give only 80000 GL account for the user. I try using the following but did not success . Program

  • Not a happy Apps Store customer - changing country settings

    I got the following problem and raised it a few times with NO reply from Apple which is very dissapointing and reflection of surprisingly poor customer service from Apple (with the exception of the customer service here in HK who came back to me quic

  • What is the table name means to me.

    Hi All, Here is the partial technical information for the field found in the SAP screen/GUI. Table Name: /SAPSLL/PRODUCT_LLNS_DYNP_S Field Name: CCNGN Data element: /SAPSLL/CCNGN. Here is my questions. ================ 1. What is the table name means