10 Replies Latest reply on Jun 15, 2011 1:15 PM by ibstmt

    jsFunction oncomplete parameters to the called function

    Magic Creative Novice


      Is it possible to call jsFunction with parameters and then assign these parameters to another javascript function in the oncomplete event.

      For example there is a link:

       <input type='button' value='Link' onclick='someJsFunction('theParam')' />

      and a jsFunction

       <a4j:jsFunction name="someJsFunction" oncomplete="alert('hereIwantToSeeTheParam')">

      so basically I want to pass the javascript param further to the oncomplete 'someJsFunction'. I have seen how I can do this with a backing bean, but I would prefer not to have the additional requests. Any ideas?