This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
Thanks,
Usman Saeed
Ranch Hand
Joined: May 21, 2008
Posts: 30
posted
0
Hi, you can use HIDDEN input tag. e.g
Usman Saeed
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35253
7
posted
0
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.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to hide the parameters shown in the url while submitting a form