Javascript not working?

I have a little SearchPage javascript on one of my web pages. It doesn't work in Lion 10.7.3. It worked in my previous OS (10.4.11) in all browsers. Anyone know how to fix this? Thanks. (Yes, I've got everything enabled in Safari/Firefox/Chrome preferences!)

Hi..
If you have the Develop menu enabled in Safari > Preferences > Advanced click Develop from the Safari menu bar. Make sure Disable JavaScript is not ✔.

Similar Messages

  • 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

  • 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..

  • 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 -

  • Javascript not working when JSP container changed. Why?

    I'm migrating from Resin (if you happen to know what it is) to Tomcat.
    My web app runs fine on Tomcat, without any change in the code. What surprises me is that, javascript, which works perfectly fine while the webapp runs on Resin, seems to have problems when the webapps runs on Tomcat.
    This does not seem to make sense to me: javascript is executed on the client (browser) and should have nothing to do with the JSP container.
    Can someone tell me why, and how to fix this? Thanks!

    see if your browser supports something like a javascript console or debugger.
    e.g.:
    - MS InternetExplorer shows a warning icon in the left bottom corner if there is a javascript error. doubleclicking on it shows the error type and the location (url, line, char) where the error occured.
    - Mozilla supports a javascript console which shows up javascript errors or warnings.
    have a look at what the browser says on your errors.
    if your javascripts are hardcoded it HAS TO BE a browser (misinterpretation) or javascript error. serverside has definitively nothing to do with javascript...
    greetz,
    Thof

  • Javascript not working in Popup/Dialog with contentDelivery=lazyUncached ?

    I am seeing following problem while using jdev 11.1.1.3.0
    The inline javascript function myTest2() is not available. any thought ?
    <af:commandButton text="commandButton 1" id="cb1">
    <af:showPopupBehavior popupId="p1" triggerType="action"/>
    </af:commandButton>
    <af:popup id="p1" contentDelivery="lazyUncached">
    <af:dialog id="d2">
    <af:resource type="javascript" source="test1.js" />
    <script type="text/javascript">
    function myTest2() {
    alert("you have called function myTest2");
    </script>
    Here is the content of Dialog
    calling myTest1()
    calling myTest2()
    </af:dialog>
    </af:popup>

    Please ignore the <af:resource which was added for comparison. The following code segment is trying to re-create the problem I have encountered in my project.
    The javascript is not working after the popup was showed. For some reason, the retrieved xmlhttp response not adding the javascript into the page.
    <af:commandButton text="commandButton 1" id="cb1">
    <af:showPopupBehavior popupId="p1" triggerType="action"/>
    </af:commandButton>
    <af:popup id="p1" contentDelivery="lazyUncached">
    <af:dialog id="d2">
    <script type="text/javascript">
    function myTest2() {
    alert("you have called function myTest2");
    </script>
    Here is the content of Dialog
    calling myTest2()
    </af:dialog>
    </af:popup>

  • Javascript not working in finalizer method of bounded taskflow

    i hava a javascript code in bounded task flow which is calle din the finalizer method of task flow.
    But the javascript is not executing at all
    Even a simple alert is not working
    Code--
    public void refreshTaskFlow(){
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service =
    Service.getRenderKitService(ctx, ExtendedRenderKitService.class);
    service.addScript(ctx,"alert('hello world');");
    service.addScript(ctx, "function nextTask() {this.parent.submitButton(\"" + refreshTaskListButtonId + "\");} nextTask();");
    }

    The fields available in the Structure "MEREQ_ITEM_S_CUST_ALLOWED" (PReq Fields That Can Be Modified via User Exit) will be available for change in the method SET_DATA. 
    See the Method IF_PURCHASE_REQUISITION_ITEM~SET_DATA in include program LMEREQF10 (Line number 62).  You may have to APPEND the custom field in the strcuture mentioned above.
    Also ensure that the method SET_DATAX is also called after method SET_DATA in the BADI.

  • Javascript not working in any browser.

    Javascript has stopped working in any browser. Javascript is turned on in all browsers preferences. I have repaired disk permisions. An example of it not working is trying to view a BBC iplayer program online. When trying to play a program I get the message;
    "To play or download (the program) - you need to enable JavaScript".
    Infact none of the other iplayer website functions work either. I'm not sure if javascript isn't working on other websites as I'm not sure how to tell. This has been like this for quite some time and I've not found any solutions searching on the net.
    Thanks
    Kevin

    Have similar problem. Any javascript that I code in Espresso or BBedit does not display properly in any browser on my MBP 2009. Tried different browsers and settings but without satisfactory results. appreciate any help since any web page coding must be done on my pc or in bootcamp.

  • Copied page has resulted in javascript not working

    I have a page 6 that works great with its javascript functions in the HTML Header.
    I wanted to try some different things on the page without messing up the master, so I copied page 6 to page 2006. The page definition's HTML Header code for page 2006 looks just like the page 6 page definition's HTML Header code.
    However, when I run page 2006, my javascript functions do not work. NOTE: The javascript functions are simple and mainly show and hide functions for fields.
    I used the copy wizard in Apex 3.0.
    Does anyone have an idea what might have happened? Or is there a better way to copy a page?
    Thanks in advance.
    Maggie

    Rutger,
    You were right. Inside my javascript functions I had forgotten to change the code to reflect the items on page 2006 (i.e. P2006_NAP_ID instead of P6_NAP_ID).
    So now everything is good there. Thank you.
    I have another question though.....why would my new page's CREATE button not work properly after the page copy? I checked and compared the P2006 CREATE button and its Branch that returns to same page with the P6 CREATE button and its Branch. And it looks like it is correct. However, when I click the P2006 CREATE button, the data is submitted to database and an id is made for the new record; but, when the page refreshes after the submit, all of the fields are blank. There are no values displayed. It is in a state of being ready for a new record to be created.
    What have I lost? Can you tell me what I should check out?
    Thanks,
    Maggie

Maybe you are looking for

  • Regarding work flows

    hi can any one tell me what is workflow? where is it used ? how a workflow is created in SAP XI

  • Which aspect is better?

    Right now I am using AspectJ, but I want to know which one is better? 1: AspectJ from http://eclipse.org/aspectj/ 2: JBossAOP from http://www.jboss.org/products/aop 3: JAC from http://jac.objectweb.org

  • 100% Height with Parallax Scrolling?

    I have an anchor point style parallax scrolling, I was wondering if I could have 100% height of my slideshow or image background when i maximize my screen, as you can see their is a white space below it that I do not like http://i.imgur.com/AryW4v1.j

  • BI Publisher 5.6.3

    Hello, Where can I download BI Publisher Desktop for Windows version 5.6.3? Thanks, R

  • Tab Question

    Hello, I created a Portal page with 3 tabs on it (A,B,C). Some people need access to all 3, others just need access to certain ones. If I setup someone with access to all 3 and they login tab A is automatically selected and all info within that tab r