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.

Similar Messages

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

  • Adobe form submit by email not working in Safari

    I created a form in Acrobat and set it up for the data to be returned in pdf by email.  I had to do this b/c the receiver doesn't have acrobat.  I am hearing from the user that submit by email button doesn't work in Safari (the user was able to get it to work in IE).  Is there something I need to do to my form or does the user need to do something in Safari?

    E-mail submission is client sensitive (this even occurs with HTML forms that use mailto). In Acrobat or Reader on Windows, it uses the default MAPI mail client (if one exists - one of the problems). I have no idea what the requirement is on a MAC, but probably something similar. You need to figure out how to do a web submission to resolve the problems.

  • JavaScript not working in safari on my iPhone eventhough kept on.not able to do online banking on my iPhone due to this problem

    Can anybody answer my query regarding JavaScript on iPhone in safari.

    I've also tried m4v and avi files. Is there another file format that will work?

  • Problems with javascript not working correctly, have firefox version 15.0.1. Javascript enabled in tools option. What else should I be looking at?

    Certain websites do not load correctly, the webpage sometimes does not display. Upgraded to current version of Java, this did not solve the problem. The most blatant thing I noticed is that when I hit the plus button to open a new tab, the page that displays displays my nine most favorite websites, all nine have descriptions, but only two or three display the actual web page.
    I also have hotmail and when I try to load some pages directly from the e-mail I get the message Javascript needs to be enabled.

    Are you using any cleanup software like CCleaner that might cleanup the cache?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java

  • Some JavaScript not working in Safari 3

    I have a site which uses the MMDrag script from Dreamweaver to enable elements of the page to be moved around. This works fine in Firefox and IE on Windows. It used to work fine in Safari but since updating to 10.4.11 and getting Safari 3 it just doesn't work. Does anyone have any idea why?
    www.kidacne.com

    I have no clue, but I've found that the solution to Safari 3's incredible slowness in loading some pages is to disable Javascript. Of course, that also disables the functionality of many webpages. I'm also on 10.4.11 and Safari 3 (but I'm using Firefox for now).
    Regards,
    Karen

  • Javascript not working in Safari and Firefox

    in stead of rendering the html generated by javascript, the html code itself is displayed in both Safari and Firefox.
    The strange thing is that this is only for one of my accounts. This account was transferred using the migration tool from my previous computer, where I also had this problem.
    A brand new generated user account does not show this problem.

    HI,
    In the affected account...
    From the Safari Menu Bar click Safari/Preferences then select the Security tab.
    Make sure: Enable plug-ins and Enable Java and Enable JavaScript are selected.
    Since you are running Snow Leopard, make sure Safari is running in 32-bit mode, not 64. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) *make sure Safari is NOT running in Rosetta.*
    Relaunch Safari.
    Carolyn

  • 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

  • InDesign Buttons and Forms... Not Working

    Hello Guys,
    I'm using Adobe InDesogn CC 10.1.0.70 x64 Build, the problem is with the check box option from Buttons and Forms, They are, simply, not working... I'm trying to add a check box on my pdf I'm creating in InDesign.. I'm using checkbox from "Sample Buttons and forms".. but nothing is working.. I'm just dragging the Check Box samp and drop it in my canvas, exporting it as PDF with "Hyperlinks" checked.. and Interactive Elemnts with Include Appearance chosen but the check box doesn't having any action!! I don't know what I should do to make this work please help  

    Start by restoring your InDesign preferences:
    Trash, Replace, Reset, or Restore the application Preferences

  • 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 is not working in Safari on my iPad, version 6.1.3. Anyone know why?

    I have an iPad with os version 6.1.3.  Javascript on websites is not working in Safari. Does anyone know why? How can I correct this situation?

    It is jquery libraries that are not functioning properly and some of the html.  I have Javascript turned on.  The website was working in Safari.  I tested it in Safari and I viewed it many times using Safari and it worked.  I went on to it on 5/8/13 and the javascript/jquery portion and parts of the html are not working.  It had been tested about 4 or 5 months ago in several diffierent versions of IE, Chrome, Mozilla and Safari. 
    Thanks for responding to my question

  • Since installing Yosemite, Airplay with Freebox not working

    Since installing Yosemite, Airplay with Freebox not working
    With Maverick Airplay working well

    If you haven't done so already, try resetting the printing system.
    OS X Mavericks: Reset the printing system  also Yosemite
    Try deleting the printer and scanner and add them back.
    Also try Applications/Image Capture to see if it can find the printer and scanner.

  • YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads.

    YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads, if it's even loading at all.
    I do not know if it's relevant or not, but I got a message on my ipad while on safari saying that my iPhone has a virus. I looked it up and it seems it might have just been an ad from the website I was on, but it happened around the same time YouTube stopped working.

    You will find that using the YouTube app will provide a better viewing experience for YouTube videos.

  • Axis bank net secure with webpin not working on ipad2

    Hi,
    Axis bank net secure with webpin not working on ipad2
    Lt me know how to proceed

    Try using their App:
    https://itunes.apple.com/in/app/axis-bank-mobile-application/id517266358?mt=8

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

Maybe you are looking for

  • Systems error 2147287035 when trying to load an upgrade to Lightroom 4.3

    What a muddle. I have formulated my question elsewhere, How do I reference it for answers to be given?

  • Tag issue in Jdeveloper

    500 Internal Server Error OracleJSP: oracle.jsp.parse.JspParseException: Line # 58, <ejb:getSysTypes searchCriteria="test" return = "ret" />/> Error: Attribute: _return is not a valid attribute name I created this tag in Weblogic 7.0 anyone run into

  • Unable to load Message Catalog - Mqji

    I have written a Java program using MQSeries Libraries. This program reads from and writes to two queues of a Queue Manager on a different machine. This program works fine when it is run from Unix prompt. But when I try to call this program from Orac

  • How to retain field formatting using this.getField

    I am pulling a phone number from a form field using this.getField("EmailAddress").value and inserting it into an email.  Once there, it loses it's formatting as a phone number and becomes a string if 10 digits again.  Is there a way to retain or recr

  • Different document types in PR?

    What is the use of defining the different document types in PR? Can anybody expain the advantages of it? Regards, Kapil Joshi