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. Advertising

  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. Advertising

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:
    143
    Martin
    Dec 9, 2003
  2. Christoff Pale
    Replies:
    0
    Views:
    116
    Christoff Pale
    Jan 9, 2004
  3. kurt
    Replies:
    1
    Views:
    88
    Robert
    Sep 22, 2004
  4. Smugsboy
    Replies:
    2
    Views:
    161
    Smugsboy
    Aug 12, 2006
  5. Amir  Michail
    Replies:
    2
    Views:
    114
Loading...

Share This Page