Posted By:
Sri_Harsha
Posted On:
Friday, March 30, 2001 05:34 AM
I have a situation where, I have to call a URL using post method from the JavaScript code. I plan to use within javascipt code, form.action="/servlet/xyz"; form.method="post"; form.submit(); But I need to send a paramter, lets say custID along with this request. But there are no UI fields in the form. Its an empty form. I'm not allowd to do this - form.action="/servlet/xyz?custID="+someValue; as customerID should not be displayed in URL (Thats why we have chosen Post method). Is there any other way of adding this value (custID) to the request ? (I can not add UI fields, or hidden field).
More>>
I have a situation where, I have to call a URL using post
method from the JavaScript code. I plan to use
within javascipt code,
form.action="/servlet/xyz";
form.method="post";
form.submit();
But I need to send a paramter, lets say custID along
with this request. But there are no UI fields in the form. Its
an empty form.
I'm not allowd to do this -
form.action="/servlet/xyz?custID="+someValue;
as customerID should not be displayed in URL (Thats why we
have chosen Post method).
Is there any other way of adding this value (custID) to
the request ? (I can not add UI fields, or hidden field).
Thanks in advance,
<<Less