This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Please help me to pass a Form Field value to server side method using apply method

RamyaSK - Wednesday, March 3, 2010 10:38 PM:

Hi

I input some value to a form field say " USER_INPUT' Text box. I have to retrieve the value of thios text box whenever I chnage and pass teh exact value inputed by user in the form to the server side method using applymethod to perform some check.

 The issue is the actual value is not passed instead myTextField as string is passed. CAn any pls help me to know how to pass the value  of field in form

var myTextField = document.getElementsByName('USER_INPUT).value;
var  innovator = new Innovator(); 

var  results = innovator.applyMethod("getresult_Servermethod","<parm1>myTextField</parm1>");

ie instead of receiving bthe value user typed to USER_INPUT , the value pASSED to server method is myTextFiled



Mike G - Monday, March 22, 2010 3:12 PM:

You're passing the string - "<parm1>myTextField</parm1>".  Instead, pass a concatenation of the strings and variable - "<parm1>" +  myTextField + </parm1>".