GetURL + Javascript not working

Hello,
I am stumped. I am trying to create a popup window from a
button - this should be simple but i'm having difficulty.
I can get a new window to launch using the getURL function:
on(release){
getURL("
http://www.bbc.co.uk")
As I want to make this a popup I wish to adjust the window
size, and remove the toolbars etc.
I therefore am incorporating some JavaScript to take care of
this:
on (release) {
getURL ("javascript:NewWindow=window.open('
http://www.bbc.co.uk','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,s crollbars=No,status=No,resizable=No,fullscreen=No');
NewWindow.focus(); void(0);");
When I try and launch this the window opens and closes in a
split second - I cannot get the popup to remain visible. I notice
that this method has works for many people across the web.
Is this perhaps a security issue with using Javascript? And
therefore the browser auto closes.
Any ideas / help will be much appreciated.

I know there is a bug out regarding getURL with javascript
for the most current flash player. This doesn't sound like what you
are experiencing, but perhaps it will give you a starting place
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403072&sliceId=2

Similar Messages

  • GetURL(javascript) not working in flash player 9

    This action works well in flash player 8 but it doesnt in
    flash player 9 can someone please help me, its very urgent.
    getURL(javascript:openNewWindow('
    http://www.macromedia.com','thewin',
    'height=400,width=400,toolbar=no,scrollbars=yes'));

    DazFaz wrote:
    > if looks as though you have missed off the speach marks
    from within the call:
    >
    > getURL("javascript:openNewWindow('
    http://www.macromedia.com','thewin','height=40
    > 0,width=400,toolbar=no,scrollbars=yes')");
    One more note tho, it's good to void the request after you
    make the window call.
    getURL
    ("javascript:n_name=window.open('PAGE.htm','thewin','width=400,height=400,scrollbars=yes' );void(0);");
    *** VOID
    Void returns nothing.
    Have you ever seen pop up windows that say [object] in them?
    well that's because the function that made those windows had
    a return
    value that was an 'object'...
    Void is use to take the result that some function returns and
    discard it.
    Some people do window.open(...);void(0); or
    void(window.open(..)); - does not
    really matter tho .....but it's good practice to use it .
    Also, no need to set NO parameters. By default all are set to
    NO, you only
    define the one you need to be set to YES.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Help! Javascript not working when object moved from one page to another!

    Hello all:
    I am new to Adobe Livecycle Designer (version 8.0). I have created a 3 page interactive pdf form with numerous objects (text fields, radio buttons, drop-down boxes, etc.), that our business wants to begin using soon.
    I am having difficulty with some of my Javascript not working with a few of my objects on page 2 of the form. Specifically, there is a drop-down box for "Country" on page 2 of my form. When the user selects, for example, "United States" from the list, I have Javascript that is supposed to change the "Currency" drop-down box rawValue to "US Dollars" accordingly (upon the change event).
    I think my Javascript syntax is proper, but I am not certain. Here is my simple Javascript associated with the "Country" drop-down box (Note: rawValue 80 = "United States" and rawValue 105 = "US Dollars"):
    form1.Page1.cmbContactInfoCountry::change: - (JavaScript, client) -
    if (this.rawValue == 80) {     
         cmbCurrency.rawValue = 105;
    This seems pretty straight forward and it WORKS when my "Country" drop-down box is moved to page 1 of the form, but it WILL NOT WORK when I move the "Country" drop-down box back to page 2 of the form (which is where it belongs).
    Does anyone have any suggestions or solutions? I have spent probably 6-8 hours racking my brain trying to figure out why it works when on one page, but it does not work when move to a different page. I am guessing that I may have corrupted something OR that I am not fully addressing the proper name of the object?
    Please help!
    Frustrated and helpless near Chicago!
    Taylor T

    Hi Jono:
    Thank you for your quick reply.I was able to obtain the full name of the cmbCurrency object using the method you taught me. That is brilliant! Great short-cut tool.
    Unfortunately, I am still having issues with getting Javasript for the cmbCountry object to work with the cmbCurrency object. I haved pasted my new Javascript below.
    JavaScript for cmbCountry object:
    //UNITED STATES
    if (this.rawValue == 1) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 1;
    else
    //CANADA
    if (this.rawValue == 2) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 2;
    I have checked the "Specify Item Values" checkbox of the cmbCurrency drop-down object and Value 1 = "US Dollars" and Value 2 = "Canadian Dollars".
    When I select "Canada" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object is changed to "US Dollars" (when it is clearly defined as "Canadian Dollars"). When I select "United States" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object stays blank for uknown reasons. Very strange.
    Since I am not able to further explain in detail on what I am experiencing, I have posted a link to my file below (I just signed up for an account at ShareFile). I would forever be indebted to you if you can help me figure this out!
    https://thomptk.sharefile.com/?cmd=d&id=07ede2fe11db4549

  • Dont' Understand Why getURL is not working

    When testing my Flash movie on my computer, all of the getURL
    links work perfectly, and worked on exported movie .swf which was
    loaded onto server and veiwed by another on their system. Now that
    it has been added to web page, the animation is running fine, but
    the getURL is not working. (They were assigned to buttons.) I am
    new to Flash and have no clue why it's working in test but not on
    web page.

    on (release) {
    //Goto Webpage Behavior
    getURL("
    http://","_self");
    //End Behavior
    I put in the full path of where to go after "
    http:// followed by the ", "_self");
    I am using Flash8.
    I am also finding out it could be an embedding issue on the
    site it has been put on, but won't know for sure until later.
    Hopefully that will resolve it. Thanks for your reply
    Macron.

  • Obfuscated JavaScript not works in safari 5.0.2

    Hi All,
    I'm very new to safari browser and currently makes my web application in safari. It works fine with few bugs in UN-obfuscated JavaScript.
    Obfuscated JavaScript not works in Safari. Kindly let me know the solution or set up. This is quite urgent and seeks for earlier response.
    Thanks in advance.

    For OS X javascript issues, post to the Unix or Developer forums under OS X Technologies. For windoze issues, I have no suggestions, since I don't do that technology.

  • Javascript not working in any browser except Opera! Please help!

    I don't know for what particular reason, javascript has stoppped working in all the browsers I have, (Safari, Firefox, Camino, OmniWeb,)except on Opera. Can anyone direct me in the right direction to solve this issue?

    Ok...
    1.) Unless it is a horribly designed site javascript not working would not prevent you from at least opening said site. You might not be able to use some of the features, or in the example of acual applications like gmail or then new yahoo mail you might not be able to use those at all since they are written soley for js. But for sites like VersionTracker it shouldnt make a difference.
    2.) Javascript is an interpeted language run on the client - ie the web browser. There is nothing to install. its part of the web browser youre using. You can uninstall and reinstall the browser itself but javascript is not a seperate component or something that is shared across applications that utilize it.
    Javascript is not the issue here at least in the case of versiontracker and 1010wins. I turned JAvascript off in my browser and visited both and they load jsut fine. Your eChalk mail might need js but i dont know about all that.
    So.... what happens when you try to visit one of these sites in one of the problem browsers???? Do you get a balck white screen? A server Error message? a DNS error? Does the app crash? etc..

  • GetURL --javascript stops working under Flash 8

    I have ran into a strange problem that I hope is simple to
    diagnose. I have done many projects where the Flash object calls a
    Javascript in the parent web page using a simple getURL method,
    like this:
    getURL("javascript:resizeSWF("+40+")");
    That has worked fine for years. But I have noted when
    publishing these projects as Flash 8, that call no longer reaches
    the Javascript function (the Javascript does not execute).
    Publishing as ver 7 or earlier is fine. Am I missing something
    obvious here, or is there a new security restriction in Flash 8
    that prevents directly communicating with Javascript functions?
    Thanks

    HitParader wrote:
    > I have ran into a strange problem that I hope is simple
    to diagnose. I have
    > done many projects where the Flash object calls a
    Javascript in the parent web
    > page using a simple getURL method, like this:
    >
    > getURL("javascript:resizeSWF("+40+")");
    >
    > That has worked fine for years. But I have noted when
    publishing these
    > projects as Flash 8, that call no longer reaches the
    Javascript function (the
    > Javascript does not execute). Publishing as ver 7 or
    earlier is fine. Am I
    > missing something obvious here, or is there a new
    security restriction in Flash
    > 8 that prevents directly communicating with Javascript
    functions? Thanks
    You need to test it online. Change in flash player as well as
    IE and FF security
    no longer allow Flash - JS - HTML on desktop. You need to
    upload it to server and
    test in real time. Should work just fine.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • GETURL  is not working in flash player 9.0.124.0.

    Dear Friends,
    My swf and my html are in different domain so i got a issue
    in GETURL function , It is not working in flash player 9.0.124.0.
    in IE browser so that i add one parameter like allowScriptAccess
    =always then its working fine.but my question is what will happed
    if they will introduce any new flash version in future please tell
    me what is the permanent solution for this issue.
    Thanks

    There is no way to know what will change in the future. This
    is the solution that works now. It will probably remain in place
    for the reasonable future.

  • Javascript not working in Firefox on Mac OS 10.9.2

    I am trying to learn Javascript from a tutorial. I'm using Text edit to create a simple .html file that calls a .js file using the script command. The .html file opens normally in the default browser and can print a message to a simple page. It looks like a window tries to open the .js file but it vanishes before opening. I have checked that Javascript is enabled in Firefox. Opening Firefox in Safe mode does not fix the problem. It also fails to execute the .js file in Safari and Chrome.
    This problem happens on three Macs, all running Mavericks 10.9.2. When I try this on a Windows PC the .js file executes as expected.
    I've tried everything I can think of including turning off the Firewall in Security Settings. It seems like it has to be something system-wide since it happens in all three browsers. Has Apple implemented some type of blocking of Javascript in Mavericks? Any suggestions for why this is not working on my Macs and what I can do to fix it would be greatly appreciated!

    Cor-el: Thank you for noticing that! Turning off smart quotes in Textedit which I am using to create the scripts solved the problem. Everything working as expected now. I hope others using Mac OS 10.9.2 will benefit from this as well.

  • External Javascript not working with C# and XAML windows phone app

    I've added a WebView into my project. If I navigate to the html file that contains external javascript files they don't work. Bit if I write the javascript code hardcoded into the html file it works properly.
    Here is the html portion:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="testjs.js"></script>
    </head>
    <body>
    <div id="abcd"></div>
    <br/>
    hello! this is a simple html block.
    </body>
    </html>
    Here is the javascript portion:
    document.getElementById("abcd").innerHTML = "New text!";
    When I open the webview it shows
    hello!
    this is a simple html block.,
    but if the javascript code worked it would show
    New
    Test! hello! this is a simple html block.
    And in the C# code the uri is called this way:
    url = onlineTestWebView.BuildLocalStreamUri("myUrl", "problem_page/test.html");
    StreamUriWinRTResolver myResolver = new StreamUriWinRTResolver();
    onlineTestWebView.NavigateToLocalStreamUri(url, myResolver);

    I assume this is because you are using NavigateToString. Please see
    http://blogs.msdn.com/b/wsdevsol/archive/2014/06/20/a-primer-on-webview-navigatetolocalstreamuri.aspx
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Capturing form values with javascript (not working in Safari!)

    Hi
    I'm working on a site and I need to be able to take the values of one form (that the user has entered) and use them to populate a second form (more details) in the appropriate input boxes. This works on all browser except Safari. It seems to me a javascript problem (as getElementById does not work properly) but I'm not entirely sure. The code I use to grab the form elements is as follows:
    obj = $('formslider".$this->id."');
    obj.getElementById('registerfirstname".$this->id."').value = callbackfirstname".$this->id.";
    obj.getElementById('registersurname".$this->id."').value = callbacksurname".$this->id.";
    obj.getElementById('registeremail_addr".$this->id."').value = callbackemail".$this->id.";
    obj.getElementById('registertelephone".$this->id."').value = callbacktelephone".$this->id.";
    obj.getElementById('registerrequest_type".$this->id."').value = requesttype_callback".$this->id.";
    This basically takes the values of the "callback" form and places them into the appropriate input boxes of the "register" form. However it seems to lose the values when moving to the next form. Please note, I am not refreshing - I am using Ajax to change the form so new content simply replaces an existing content, not transfering to another page. I use Sessions so it shouldn't forget the values.
    Can anyone help? It's quite an important thing as I need to migrate hidden form inputs too which are needed for this particular request system.
    Thanks
    Michael

    I'm seeing this same issue in Mavericks, 10.9.2.  Althought JavaScript is enabled in Safari, it just doesn't work, for any pages.
    I've tried different user accounts, including a new account, on the same machine, but they all do the same thing, so it's a machine-wide issue.
    I have plenty of other Mavericks machines, including my own, where it is working just fine, however, with the same settings.

  • Attach JavaScript not working in Acrobat Reader XI

    Hello,
    I created a fillable PDF in which I used the following JavaScript for an "Attach" button: 
    this.importDataObject("MyFile");
    This JavaScript worked and allowed the end user to attach files to the PDF in previous versions of Acrobat (through version 10 / Pro), but the button's functionality does not work in Adobe Acrobat XI.  The button has no functionality when clicked, and no errors are received indicating what the issue may be.
    Is there a bug that exists making this file not compatible with the Acrobat XI version, or is my coding outdated/inaccurate?
    Please advise and thank you for your help!
    Jessi Fenton

    Did you ever figure this out? I am also having problems with the "No Hand" javascript which turns off the (not very helpful) page-forward hand icon (a hand symbol with a down arrow) which confuses our users when in fullscreen mode. We create interactive PDFs and everything worked fine up to Acrobat X/Reader X. Now in XI it doesn't allow the internal link icon (pointing finger) nor weblink icon (pointing finger with W) to appear. It just remains a plain o’ hand icon no matter what you mouse over even though there are links present.

  • Javascript not working with web.show_document.

    Hi,
    I executed the below command from forms 10g and it is not working.
    web.show_document('javascript:var win=showModalDialog("http://otn.oracle.com/products/forms");','_self');
    But if I execute javascript:var win=showModalDialog("http://otn.oracle.com/products/forms"); directly in IE, then it is working.
    Frank, can you help me in this or any other people having any idea ?
    Very urgent.
    Thanks & Regds,
    Nandakumar

    Hi Mark,
    Thanks for your quick reply. Your question is right. I think let me explain clearly my requirement. I have an application accessed in the web. A internet user is trying to a report through the application by giving a parameter as "A". Now using the window.open method, the report is displayed in the IE browser. Now the user can go to history and can see the complete URL with parameters.
    If he just copies and pastes that url from history in the browser, the reports runs successfully. If he changes any of the parameter to "B", there is a chance that report will show the report for parameter "B". This should not happen.
    Hope this is clear. Let me know if you are not still clear. Moreover, in the IE it is possible to clear history, but for internet based applications, how can we set them.
    Thanks & Regds,
    Nandakumar

  • Javascript not working in swf output

    I am working on a project where the quiz requirements are quite unique and not all that logical, but it's what the client requires...
    I have a lot of courses ("lessons") for this project. I'm using a fully custom quiz for each lesson. Because of the sheer number of courses, and the unique requirements, I am trying to leverage javascript for this project as much as possible.
    I must publish both HTML5 and Flash versions. While not contractually required to publish a swf version, I am pretty certain that having both formats available will avoid having to deal with all of the browser issues down the road (already seeing issues in IE 11 on the client's PC).
    So for each quiz question slide I have smartshapes which are acting as clickable text captions, like this:
    Question text....
    A. Answer choice a
    B. Answer choice b
    C. Answer choice c
    D. Answer choice d
    Each of the above answer choices is a smartshape button that is set to 'Execute Javascript' on click. In the javascript panel for each I have the following:
    CORRECT_ANSWER = 'q1b';
    ANSWER_CHOICE = (event.target) ? event.target.id : event.srcElement.id;
    evaluate_answer(ANSWER_CHOICE, CORRECT_ANSWER);
    In an external 'quiz.js' file I have the evaluate_answer function, which looks like this:
    *********** quiz.js *************
    var evaluate_answer = function (answerChoice, correctAnswer) {
      var answerChoice = window.cpAPIInterface.getVariableValue("ANSWER_CHOICE");
      var correctAnswer = window.cpAPIInterface.getVariableValue("CORRECT_ANSWER");
      if (answerChoice == correctAnswer) {
       cp.show('fb_q1_correct');
       cp.show('fb_q1_correct_next');
       cp.show('q1_answer_disabler');
      } else {
       cp.show('fb_q1_incorrect');
       cp.show('fb_q1_incorrect_next');
       cp.show('fb_q1_incorrect_remediate');
       cp.show('q1_answer_disabler');
    *********** END quiz.js *************
    The above works great in HTML5 output but not in the swf version. It looks like the swf version can't handle/pass the event.target, but that's just a guess.
    Any ideas?

    Hey again all,
    The specific code importing the username isn't actually all that important, it's more of test to make sure that Javascript will actually work. I have a lot more code that needs to be processed as well, I'm using this as an example before I tackle the actual interworkings of the script. Therefore, I can't use a workaround, such as a system variable in the hyperlink, to pass the username.
    I've now tried countless variations of methods of trying to run the JavaScript so far, including the ways that all of you have recommended. The only way the script will run is by my saving the file as a .htm and including an alert within the script in either the .htm file or in the .js file and calling from within the .htm. I haven't been able to get the process to run at all by including as an On Enter page action or as a .swf or by excluding the alert().  Can any of you get a Captivate 8 project with JavaScript to work as .swf alone on your server? Why does that alert have to before the setVariable in order for it to work in htm? I've changed the global security for Flash; is there another setting that I'm maybe missing?
    Thank you all again for help. I'm completely stumped by this one!

  • Javascript not working in htmldb

    Hi,
    I am using HTMLDB Release 2.
    The time I put some java script in page html header section and click on apply changes, it redirects me to wwv_flow.accept page can't be displayed.
    Please let me know how to correct this as I want to use javascript in my page.
    even the most simple script is not working
    ==============================
    <script type="text/javascript">
              <!--
    alert('hello');
    // -->
              </script>
    ==============================

    JavaScript is an event driven language; simply putting code on the page does not mean that it will be executed. You will need to have something call your code for it to run.
    In order to do that, you will need to use the proper syntax for a JavaScript function. Your code should read:
    <script type="text/javascript">
    <!--
    function jsDemo()
    alert('hello');
    // -->
    </script>Now, you can call the JavaScript function jsDemo() from a button, for example. Simply create a button, and set it to redirect to a URL. For thre URL, enter this:
    onclick="jsDemo()";There are many more ways to incorporate JavaScript into your applications - have a look on the APEX home page or this forum for some more examples.
    Thanks,
    - Scott -

Maybe you are looking for