title: javascript input value changes not taking effect? Calculation field value does not change?
body: <p>I am using javascript to populate a page which has a calculation field. The calculation field only gets set when i click on the page or tab manually. I don't think javascript is populating the fields until i click tab.</p>
  
  <p>Iv tried runing a methoud to foucus on all the inputs.</p>
  
  <pre><code>function PushTab()
  {
      //could not get this working as i could not select a input with js and run the trigger function of jq .. mixing js with jquery is bad.
      //$(this).trigger({
      //    type: 'keypress',
      //    which: 9
      //});
  
      var doc = window.frames['main'].window.frames['content'].document;
      var tabbables = doc.querySelectorAll("input");
      for (var i = 0; i &lt; tabbables.length; i++) {
          tabbables[i].focus();
      }
  }
  </code></pre>
  
  <p>Could someone tell me how i could trigger all my javascript changes to take affect, something that simulates a users tab or click on page?</p>
  
  <hr>
  
  <p>Edit</p>
  
  <p>How i change the values.</p>
  
  <pre><code>function SetElementValue(name, value) {
  
      var elementType = "input";
      element = GetElement(elementType, name);
      if (element != null) {
          element.value = value;
          return;
      }
  
  function GetElement(type, name) {
  
      var doc = window.frames['main'].window.frames['content'].document;
  
      if (doc != null) {
          var aTags = doc.getElementsByTagName(type);
          var searchText = name;
          var found;
  
          for (var i = 0; i &lt; aTags.length; i++) {
  
              if (aTags[i].name.trim() == searchText) {
                  found = aTags[i];
  //alert(found.type);
                  return found;
                  break;
              }
          }
  
      }
  
      return found;
  
  }
  </code></pre>