Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parameter passing with href

 
varkala prabhakar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I my work, i get the url from the database and this is to be displayed as a link.I am using href for the link. When i click on the url, url parameters are displayed.
I cannot keep a submit button for the link to hide the parameters.
I want to hide the parameters, Can any one tell me how to hide the parameters.
thank you..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if I'm getting your question straight or not, but here's a shot:
You want to create a link that will submit a request complete with request parameters, but do not want to display those parameters as part of the URL.
If so, I'd create a form with all the parameters that you want to submit as hidden values. This form would have no page-visibile components. Then, when the link is clicked, you submit the form via JavaScript (no submit button necessary).
For example:

hth,
bear
[ March 25, 2003: Message edited by: Bear Bibeault ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a form with hidden variables and use the POST method so the variables will not appear in the URL. Naturally you will have to handle the request in doPost. Any basic HTML reference will tell you how to create a form.
Bill
 
varkala prabhakar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi William,
Whether Form can be handled with out a submit button.
I should not have a submit button, Just a link and parameters should be hidden
Hi Bear Bibeault, I will check with your function.
thanks
prabhakar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic