Simulating a form INPUT - type IMAGE

Discussion in 'Javascript' started by champ.supernova@gmail.com, Oct 24, 2005.

  1. Guest

    Hi,

    I have a form which has a few different submit links, all of type
    image. This is critcal to the operation of the form, as it relies on
    the image co-ords being passed to another page, the processing of which
    is handled by someone else.

    What I need to do though, is to have a text link which simulates one of
    these image inputs being clicked, as some kind on onclick event.
    However, I've hit a brick wall looking for example code of how to do
    this - can anyone help by advising me how I can simulate, in code, the
    clicking of an INPUT IMAGE button? (I have no control over the master
    input type, it HAS to be an image, so I'm not able to look at a
    solution using another input type.)

    Thank you in advance!
     
    , Oct 24, 2005
    #1
    1. Advertisements

  2. VK Guest

    wrote:
    > Hi,
    >
    > I have a form which has a few different submit links, all of type
    > image. This is critcal to the operation of the form, as it relies on
    > the image co-ords being passed to another page, the processing of which
    > is handled by someone else.
    >
    > What I need to do though, is to have a text link which simulates one of
    > these image inputs being clicked, as some kind on onclick event.
    > However, I've hit a brick wall looking for example code of how to do
    > this - can anyone help by advising me how I can simulate, in code, the
    > clicking of an INPUT IMAGE button? (I have no control over the master
    > input type, it HAS to be an image, so I'm not able to look at a
    > solution using another input type.)
    >
    > Thank you in advance!


    see:
    <http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/2602a35ef4a14ac1/634aa48ba482a5e0?q=createEvent&rnum=3#634aa48ba482a5e0>

    and:
    <http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/27e7c70e51ff8a99/98cea9cdf065a524?q=createEvent&rnum=1#98cea9cdf065a524>
     
    VK, Oct 24, 2005
    #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. Mike Albrecht

    Re: Form INPUT type IMAGE and NS 4.x

    Mike Albrecht, Jul 28, 2003, in forum: HTML
    Replies:
    1
    Views:
    466
    brucie
    Jul 29, 2003
  2. Barb
    Replies:
    1
    Views:
    427
    Thomas Matthews
    Oct 9, 2003
  3. Roberto
    Replies:
    3
    Views:
    474
  4. Replies:
    3
    Views:
    263
  5. Dave
    Replies:
    1
    Views:
    291
  6. Kimmo R. M. Hovi
    Replies:
    2
    Views:
    448
    William Morris
    Apr 14, 2004
  7. fochie
    Replies:
    0
    Views:
    430
    fochie
    Feb 1, 2005
  8. Randell D.
    Replies:
    12
    Views:
    465
    Randell D.
    Jul 6, 2005
Loading...