Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes make a POST request upon hyperlink click? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "make a POST request upon hyperlink click?" Watch "make a POST request upon hyperlink click?" New topic
Author

make a POST request upon hyperlink click?

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
is there any way to make a POST request when a user clicks the hyperlink in some HTML page?
Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

Did you try for the onclick even of the hyperlink..
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
I need POST request.
Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

As far as my understanding, it all depends on the method you give in form tag..
So when you use onclick="document.someForm.submit();" for a hyperlink, it will submit the form using the method specified in the form tag..
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
can you give me a example?
Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

Here is an example





 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: make a POST request upon hyperlink click?
 
Similar Threads
hyperlink html opening as save as instead of opening in IE
Converting a Get Request into Post Request
doubts on service, post, get metods?
Implementing the Post Request while htting the hyperlink
Preventing anchor tag submit