Problem with Bookmarklet

N

Nettar

Hi Everyone,

I have a servlet which accepts a url as a parameter and does something
with it.
I need to pass the parameter via POST.

I want to write a bookmarklet which takes the URL of the current page
and invokes the servlet with that URL via POST.

I tried to achieve this in many ways. But no success.

Can someone kindly assist me?

Thanks,
Jayarama Nettar.
 
D

David Dorward

Nettar said:
I need to pass the parameter via POST.

I want to write a bookmarklet which takes the URL of the current page
and invokes the servlet with that URL via POST.

The only way that springs to mind would be to generate a form using DOM
that has a hidden input containing that URL and place the form at the
very start of the body of the current page - then call the submit
method of that form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top