4 Replies Latest reply on Dec 17, 2009 8:28 AM by Deb Dutta

    Passing reference to current form to javascript

    Schen Ger Newbie

      Hey,

       

      i would like to disable all inputs in a form during ajax request. Therefore i call a javascript function and i try to pass the current form reference. The problem in javascript is the form reference undefined. Can i pass current form reference like: disableElements(this.form);

       

      <rich:inputNumberSlider id="slider"
          value="#{node.submittedValue }"
          valueChangeListener="#{handler.valueChanged }"
          label="#{node.name }"
          inputPosition="top"
          width="400"
          showInput="true"
          enableManualInput="true"
          minValue="#{node.min}"
          maxValue="#{node.max}">
          <a4j:support event="onchange"
              onsubmit="disableElements(this.form);"
              requestDelay="1000" status="commonstatus"
              reRender="part" />
      </rich:inputNumberSlider>

       

      or is it possible to block only a part of the page with modalpanel?

       

      thank you very much