473,545 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simulating a form INPUT - type IMAGE

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 '05 #1
1 1697
VK

ch************* @gmail.com 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.c om/group/comp.lang.javas cript/browse_frm/thread/2602a35ef4a14ac 1/634aa48ba482a5e 0?q=createEvent &rnum=3#634aa48 ba482a5e0>

and:
<http://groups.google.c om/group/comp.lang.javas cript/browse_frm/thread/27e7c70e51ff8a9 9/98cea9cdf065a52 4?q=createEvent &rnum=1#98cea9c df065a524>

Oct 24 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4426
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most part, the scripts were created with http://phpcodegenie.sourceforge.net/
1
1962
by: balu | last post by:
Hi, I am developing a standalone or windows based application in vb.net which simulates a website. I would like to simulate this web form from my vb.net application: <form action ="cgi-images/accept_upload.pl" method = POST ENCTYPE="multipart/form-data"> <input type = text name = uname>
1
3032
by: Dave | last post by:
Hi all, I was trying to make an image submit button with a rollover and discovered to my suprise that there is no way to access a form element of the "image" type. I tried specifying it by name and also by the elements array with no luck. Even weirder, I can sandwich an image button in between other input types and then write a script...
4
13541
by: sameergn | last post by:
Hi, I have an image in my HTML form which has onclick() handler. There is also a submit button and a text box. Whenever text box has focus and user presses enter, the onclick() event of image is fired with event.keyCode as undefined. I was expecting that the form would get submitted. I tried returning from onclick() handler if keyCode...
16
2842
by: browntown | last post by:
so I have this application I'm nearly finished with. The only thing the client has requested is the ability to submit the form by pressing "enter". I didn't think this would be a huge pain in the ass and the app will be used internally so I'm not too worried about users who aren't using javascript. I'm using the following javascript to detect...
6
2639
by: Spycat | last post by:
Hi all and happy holidays! I should start off by stating I am NOT a PHP programmer. I say that so that in any response to me, you will speak very s-l-o-w-l-y or I won't know what you're talking about ;-) I have this form processor script that I basically pieced together from 3 different scripts. The script includes a CAPTCHA image...
3
2664
by: eholz1 | last post by:
Hello PHP programmers. I had a brilliant idea on one of my pages that selects some data from my mysql database. I first set the page up to display some info and an image, just one item, with a row of data, etc. then I thought it would be nice to do a select, and perhaps an update (the title of the image) on the same page.
3
3444
by: Wojtek | last post by:
Given the following somewhat abbreviated code: ------------------------------------------ <table> <form name="aForm1" action="doStuff" method="post"> <input type="hidden" name="id" value="1"> <tr onClick="aForm1.myButton.value='View'; aForm1.submit();"> <td> <input type="submit" name="myButton" value="View"> <input type="submit"...
2
1920
by: sbettadpur | last post by:
Hi everybody, Hi iam strugling with more than one submit buttons with in one form here is my code <form method="post" action="Offer.php" name='issueFrm' onSubmit="return fullOfferfields();"> OFFER <input type=image src="amarok_rewind.png " title="rewind" > <input type=image src="amarok_back.png" title="back"> <input type="text" size=3...
0
7434
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7946
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6026
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
744
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.