• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

parameter passing with href

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic