GetURL("javascript:self.close()"); not working

I've noticed my popups containing swfs don't close any longer
when I publish in flash 8 Is there a problem with the
getURL("javascript:self.close()"); command?

check the topic "pop up window", posted on 25-3-08
I hope this helps
Martin

Similar Messages

  • Self.Close() not working in iOS8

    Self.Close() is not closing window tab on call

    Look at the top right of this page at the 'Breadcrumb' trail
      Apple Support Communities  /  iPad  /  Using iPad
    You are there.

  • Javascript Foucs is not working In IE

    I have tabular in in APEX page
    In tabular form on one textbox onblur="setfocs();"
    And i set focus on button using javascript as below.
    <script type="text/javascript">
    function setfocs()
    document.getElementById('add_row_id').focus();
    </script>
    Javascript in HTML header part of the page.
    'add_row_id' is button id.
    That is working fine in Firefox but not working on IE and Chrome.
    Can any one have idea?
    Thanks

    Hi,
    This is a documented issue. Please see http://www.mkyong.com/javascript/focus-is-not-working-in-ie-solution/
    Cheers,
    PS: Many more resource on the subject here
    Edited by: Prabodh on Jul 31, 2012 3:47 PM

  • ExportAsFDF javascript method is not working with Reader 10.1.1

    Hi,
    I have pdf document in which I have applied all Extendend Reader Rights. And now when I am trying to exports alll annotation in fdf with Reader 10.1.1 then it is faling to export. However it is working fine with Reader 10.0.0. Looks like this is broken in later version of 10.0.0.
    Please let me know if any alternative solution is there to export all annotation in fdf file thru code.
    Regards,
    Arvind

    I would open a formal support ticket with our developer support folks.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sun, 27 Nov 2011 22:48:35 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: exportAsFDF javascript method is not working with Reader 10.1.1
    exportAsFDF javascript method is not working with Reader 10.1.1
    created by arvindg007<http://forums.adobe.com/people/arvindg007> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4049525#4049525

  • SMD and Self diagnosis not working

    Hi Solman's,
    I put my system to Stack 12. After that, SMD and Self Diagnosis not working any more. Here the message:
    URL http://sv030488.myco-group.com:8001/sap/bc/webdynpro/sap/dswp_sd_self_diagnosis call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system MMS with error code 403 and for the reason Forbidden.
    SM59 connection test shows:
    ERROR: program WEBADMIN not registered
    how to register ??
    Best regards
    Wolfgang

    Hello Wolfgang,
    You have to activate the service dswp_sd_self_diagnosis.
    Run transaction SICF, on Service Name, enter dswp_sd_self_diagnosis.
    Right-click on the service and select "Activate Service".
    Run the Setup Wizard of Diagnostics System on SMD to register the program WEBADMIN.
    Best regards,
    Paula

  • After changing from cs5.5 to cs6 my javascript pop-up not Working??

    Hello, maybe someone could figure this one out.
    I have a file that I have done on CS5.5 and everything works fine, just simple ActionScript 2 and a script: on (release) { getURL("javascript:openNewWindow('http://xxxxxxx.html','thewin','height=800,width=800,toolbar=no,scrollbars=no,top=560,left= 140')"); }
    when I then open the SAME file in CS6 and publish it, everything else works BUT not this pop-up??
    anyone? ideas?
    - Norskuli

    test online or adjust your player security settings,  http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html

  • JavaScript popup code not working 4 me

    Hi,
    I am to trying to open pop windows in Flash through
    JavaScript. Now I found a number of ways to do this on the forums
    but none is working for me. When I click the swf button containing
    the pop code (embedded in html), nothing happens. I do not have pop
    windows blocked, and when I click the button in stand alone swf
    file (i.e. not embedded in html), I receive the following error
    message:
    Macromedia flash player has stopped a potentially dangerous
    operation. The following application on your computer or network
    <name of file>
    is trying to communicate with this internet-enabled location
    <unknown>
    To let this application communicate with the internet, click
    settings.
    /********** FIRST CODE ****************/
    The first was from kirupa.com. The code on the button is:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.google.com";
    target_winName = "google";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    _root.openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    The code on the root timeline is:
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    /********** SECOND CODE **************/
    The code on the button is:
    btn.onRelease = function()
    getURL("javascript:window.open('
    http://www.google.com','newWin','width=300,height=200,left=0,top=0,toolbar=No,location=No, scrollbars=No,status=No,resizable=No,fullscreen=No')");
    Nothing on the root timeline.
    Anyone got a clue what’s happening? I was wondering
    whether there was problem with settings on my computer? Also, I do
    not want to embed JavaScript code in the HTML file.
    Many thanks,
    Essaeyu

    What I want to achieve is something very basic, done n times
    on the web, but its strange that its not working on my machine. I
    am getting popups through getURL function and on HTML links but not
    from swf/javascript links. This includes linking both to the
    webpages on the internet e.g. google and pages on my machine. I
    have tried three different ways of achieving this and am attaching
    thecode. Can someone look at the files please and see what’s
    wrong/spot something I overlooked? I will be extremely grateful.
    Here is the code in the fla's (and html in one case). No
    facility to attach files else i would have done so. Though the
    flas/swf/html files can be downloaded from:
    http://www.actionscript.org/forums/showthread.php3?p=623694#post623694.
    These are three zip files posted by user essaeyu today.
    Many thanks,
    Essaeyu
    /*************** Code in the first file ****************/
    The code on the button is:
    btn.onRelease = function()
    getURL("javascript:window.open('
    http://www.google.com','newWin','width=300,height=200,lef
    t=0,top=0,toolbar=No,location=No,scrollbars=No,sta
    tus=No,resizable=No,fullscreen=No')");
    Nothing on the root timeline.
    /*************** Code in the second file ****************/
    /*Taken from kirupa.com*/
    The code on the button is:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.google.com";
    target_winName = "google";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    _root.openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    The code on the root timeline is:
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    /*************** Code in the third file ****************/
    Code in the html header
    <script language="JavaScript">
    <!--
    function spawnWindow(URL , u_name)
    var my_vin;
    my_vin = window.open(URL , u_name);
    //-->
    </script>
    Script in flash root timeline:
    btn.onRelease = function()
    getURL ("javascript:spawnWindow('
    http://www.google.com','newwin')");
    }

  • Binding to a javascript function is not working

    I am trying to use the following code to bind to a javascript
    function and it's not working. I finally had to use jQuery to bind
    the event handler, but I would like to see the CF generated stuff
    work. Am I missing something here?
    This jquery code is the workaround:
    $('.match').change(function(){
    updateSA(this);

    Binding is not restricted to flash forms. I can bind directly
    to a cfc without problems, but in this case I need to send more
    info to the cfc than a single field would provide. You're supposed
    to be able to bind to a javascript function using the syntax above,
    but it's not working properly.
    More details here:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_03.html#1128486

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • Javascript Date() function not working

    Hi,
    I'm experiencing some problems with the Date() function in javascript. The problem is that the function doesn't seem to work. For example when I do "var date = new Date(); xfa.host.messageBox(date);" in the enter event of a date field, I get "Date is not a function" error message in de javascript debugger.
    Is there anyone out there who knows how why the Date function is not working in LiveCycle Designer. Am I using the Date function in an improper way or maybe I am using the wrong function?
    Please can anyone help me out?

    Hi Paul,
    Thanx for you reply. It worked fine.
    I also found out that following works as well:
    var MyDate = util.scand("dd-mm-yyyy",new Date());
    console.println("this date: "+util.printd("dd-mm-yyyy", MyDate));

  • Javascript focus() is not working anymore in firefox 22, thank You

    With this sample code, focus() is not working
    <pre><nowiki>Name <input name=cName id=cName size=50 onblur=chkName(); />
    <br>
    Last Name: <input name=cLastName id=cLastName size=50 onblur=chkLastName(); />
    <br>
    Another Field:
    <input name=cAnother id=cAnother size=15 />
    <script>
    function chkName() {
    var cName = document.getElementById('cName').value;
    if ( cName == '' ) {
    alert("ERROR");
    document.getElementById('cName').focus();
    function chkLastName() {
    var cLastName = document.getElementById('cLastName').value;
    if ( cLastName == '' ) {
    alert("ERROR");
    document.getElementById('cLastName').focus();
    </script></nowiki></pre>

    Yes of course.
    The function example I posted would be called by the onblur event and not by a submit. as has been stated previously, I also remember that it used to work. Perhaps I am wrong.
    Since that is not working, I am suggesting that the OP will be forced to use the onsubmit and validate at that time to solve the problem as was also previously suggested. Using the onSubmit and returning false on invalid does work for me.
    Since my last post I did determine that I can pass the id to a window.settimeout and have it work correctly, but this still does not stop the form from being posted in FireFox. Whereas an onblur navigation cancellation does prevent posting in Chrome and IE.
    this is important to note because if you are depending on your javascript to validate your data you can get betray because not all the browsers treat it the same way. This is by no means a FireFox only problem. they all have their quirks.
    I just wish there was a standard that we could depend on.

  • JavaScript alert() is not working in mozilla 19.0.2.Why?

    I have created a .aspx page in it i have added gew javascript function containing alert(). But niether the functions nor the alerts are invoking.why? i have created a javascript function on keypress event as:
    function isSpaceKey(evt) {
    // debugger;
    var charCode = (evt.which) ? evt.which : event.keyCode
    if ((charCode < 47 || charCode > 57) && charCode != 8) {
    alert("Enter Numeral Values only!");
    return false;
    return true;
    and added validation summary in .aspx page enabling its message box if user validation fails . But it is also not working. Before using Firefox i was using IE on which it was working fine. What is the problem? Thanks.

    See:
    *https://developer.mozilla.org/en-US/docs/Web/API/event.which

  • JavaScript in form not working on webpage

    With the help of this forum, I was able to create a PDF form that had javascript.  The javascript was basically if then statements. The the person selects "A" in dropdown one then they get "B" or "C" in dropdown two; if the person selects "D" in dropdown one they get "E" in dropdown two etc...  It works perfectly on my desktop.  However, I tried to upload it to our website and the javascript is not working.  It allows the person to select a choice in dropdown one but regardless of what they select dropdown two does not have anything to select.  Do I need to do something special to make PDFs with javascript work on a website?
    Donna

    The users of the form need to download Adobe Reader and adjust Chrome to use Adobe Reader and not Google Chrome's PDF viewer.
    For those using mobile devices, not all apps for mobile devices have the same ability as a computer nor do they all have the same ability. For iPads your best choice would be PDF expert and for android qNotes or ezPDF Reader. Note that most mobile apps do not understand document level functions and the JavaScript date object. Since apps are frequently updated and new features are constantly being added it is nearly impossible to keep up with the revised apps features.

  • Javascript time counters not working with Safari 5.1.4

    New Safari 5.1.4 made my website javascript time counters frozen and not working. I am using jQuery library on my site.
    You can see the preview of the problemhere: http://headiil.ee/
    What is the problem with this new Safari update and how can it be solved?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • Window.close() not working in Chrome and Mozilla

    hello techies,
    I used the below code on one of my Sharepoint webpart page :
    setTimeout(function(){ window.close(); }, 3000);
    This script works fine on IE but not working on Moziila and Chrome.
    Any help will be appreciated

    Hi Sachin,
    Use following line of code, before window.close(), see if it helps you.
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

Maybe you are looking for

  • After updating to IOS 6.1 my 3G no longer connects to anything,

    it says i still have 3G signal but it doesn't let me use anything. I've tried the various on/off senarios and they don't work either, anyone had this problem or know how to fix it?

  • ITunes not closing down - hanging on close down

    When I close down iTunes (using command Q or when shutting down the computer), iTunes does not close. There is just a spinning colorful wheel, and eventually a time out error. This happened first about a week ago, after upgrading to 10.2, and still h

  • Can you help to find email contacts of Barcelona Apple store, please?

    Sorry if choose wrong place to write this question. Just don't know where to ask. Google doesn't help. Can't find any email contacts or online chat with sell department specialists in Barcelona Apple store. Thank you!

  • Creating HashTag in sharepoint 2013 community discussion board

    We are trying to create new HashTag in sharepoint 2013 community discussion board. But we are unable to do so. It is getting treated as plain text. We are able to use existing hashtag on same discussion board but not able to create new one. Is not th

  • OBIEE Linux Red Hat 64bit issues

    Specs: Linux Red Hat 64bit OBIEE 10.1.3.4.1 using OC4j as web server Oracle 10g (If you need more, just ask. I'll provide what I can.) Having the following issues when trying to start OBIEE. --------------- Errors from NQServer.log ------------------