AnsweredAssumed Answered

Get parameters sending with method POST in file .JS

Question asked by joseacc on Jun 17, 2009
Hi,

I'm following http://developer.yahoo.com/yui/connection/#forms

From page1.get.html.ftl:

<form id="myForm">
<input type="text" name="param1" value="value1" />

</form>

I'm using an asynchronous connection to send the form to other webscript:

var myForm = document.getElementById("myForm");
YAHOO.util.Connection.setForm(myForm);
YAHOO.util.Connect.asyncRequest('POST', "/postWebscript", callback);

Now in destination webscript (/postWebscript), I can not retrieve the parameters of the form in file postWebscript.post.js using:

args["param1"]  <—- its dont work

How can I do?

Thanks

Outcomes