Hi, My form is already using POST.. I cannot hide the parameter.. I have a common js script. Lots of pages are using this common script In that I am doing this function.. CODE] window.location=url;
[/CODE] where url="welcome.do?"...ETC parameters following here
Joined: May 21, 2008
Hi, you can use HIDDEN input tag. e.g
Joined: Mar 22, 2005
Setting window.location is different from calling form.submit(). The former will always do a GET, while the latter -which is what the code you posted is doing- will use whatever the form's action attribute is set to.
The only way to keep parameters out of the URL is to use POST. So if that's the paramount requirement, then you'll need to adapt the code that's forcing you to do a GET.