Problem with Bookmarklet

Discussion in 'Javascript' started by Nettar, Apr 24, 2006.

  1. Nettar

    Nettar Guest

    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.
     
    Nettar, Apr 24, 2006
    #1
    1. Advertisements

  2. Nettar wrote:
    > 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.
     
    David Dorward, Apr 24, 2006
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin

    Bookmarklet for random url

    Martin, Dec 8, 2003, in forum: Javascript
    Replies:
    5
    Views:
    249
    Martin
    Dec 9, 2003
  2. Christoff Pale
    Replies:
    0
    Views:
    173
    Christoff Pale
    Jan 9, 2004
  3. Michael Hamm

    bookmarklet: tooltips on links

    Michael Hamm, Jan 19, 2004, in forum: Javascript
    Replies:
    1
    Views:
    177
    Lasse Reichstein Nielsen
    Jan 19, 2004
  4. Kim Scarborough

    Random Bookmark Bookmarklet

    Kim Scarborough, May 19, 2004, in forum: Javascript
    Replies:
    1
    Views:
    198
  5. giorgio borghi

    newbie bookmarklet help please!

    giorgio borghi, Aug 10, 2004, in forum: Javascript
    Replies:
    0
    Views:
    158
    giorgio borghi
    Aug 10, 2004
  6. kurt
    Replies:
    1
    Views:
    157
    Robert
    Sep 22, 2004
  7. Smugsboy
    Replies:
    2
    Views:
    222
    Smugsboy
    Aug 12, 2006
  8. Amir  Michail
    Replies:
    2
    Views:
    153
Loading...