1 Reply Latest reply on Jun 21, 2007 4:06 AM by ilya_shaikovsky

    AJAX Refreshes Using Custom javascript

    weull

      Hi,

      I'm currently using Spring MVC for my backend work and RichFaces for the front end. I have a custom javascript function which utilizes prototype.js for AJAX requests. I was wondering if and how I could use my function to refresh a inside of a RichFaces Panel... The code that works in HTML is:
      div id="myID">/div>
      script> AjaxRequest('myID', 'somewhere.html);/script>

      Where I'm invoking a Spring controller which returns a JSP to refresh the div "myID". Is the following possible?

      <rich:panel>
      div id="myID">/div>
      </rich:panel>
      script> AjaxRequest('myID', 'somewhere.html);/script>

      If not, is there a way to replicate this functionality in ajax4jsf? Thanks for your time.