473,756 Members | 2,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

input type=image, problems with

I can't seem to get a form to submit using an image !?

<input type="image" src="submit.gif ">

Any body have this problem? Is it choking on the x/y coordinates? If
so, what can be done about it?

code below works (truncated)

<form name="loginForm " action="/index.cfm" method="post"
onSubmit="retur n
checkTheForm()" >
<input type="submit" value="GO" name="login" class="go">
</form>

but this code doesn't:

<input type="image" name="login" src="/graphics/go.gif">

!????!!!!
Jul 23 '05 #1
7 4954
b2b2u wrote:
I can't seem to get a form to submit using an image !? <input type="image" name="login" src="/graphics/go.gif">


Aside from the missing (but required) alt attribute, there is nothing
obviously wrong with this. Try providing a URI so that people can see the
code in context.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
David Dorward <do*****@yahoo. com> wrote in message news:<cg******* ************@ne ws.demon.co.uk> ...
b2b2u wrote:
I can't seem to get a form to submit using an image !?

<input type="image" name="login" src="/graphics/go.gif">


Aside from the missing (but required) alt attribute, there is nothing
obviously wrong with this. Try providing a URI so that people can see the
code in context.


I set up some test examples

http://royalmediacom.readyhosting.com/loginTest.cfm (works) use aaa,aaa
http://royalmediacom.readyhosting.com/loginTest2.cfm (image)
Jul 23 '05 #3
b2b2u wrote:
I set up some test examples http://royalmediacom.readyhosting.com/loginTest.cfm (works) use aaa,aaa
http://royalmediacom.readyhosting.com/loginTest2.cfm (image)


It looks like the issue is with the Cold Fusion. It probably depends on a
form variable called "login" to decide if the user is trying to login or
not.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #4


b2b2u wrote:

David Dorward <do*****@yahoo. com> wrote in message news:<cg******* ************@ne ws.demon.co.uk> ...
b2b2u wrote:
I can't seem to get a form to submit using an image !?
<input type="image" name="login" src="/graphics/go.gif">


Aside from the missing (but required) alt attribute, there is nothing
obviously wrong with this. Try providing a URI so that people can see the
code in context.

http://royalmediacom.readyhosting.com/loginTest.cfm (works) use aaa,aaa
http://royalmediacom.readyhosting.com/loginTest2.cfm (image)


As far as HTML is concerned, both examples work. If the application is
broken, that's probably a programming issue.

Thor

--
http://www.anta.net/
Jul 23 '05 #5
David Dorward <do*****@yahoo. com> wrote:
It looks like the issue is with the Cold Fusion. It probably depends
on a form variable called "login" to decide if the user is trying to
login or not.


That would be my guess too. An image submit button causes different data
to be sent; see a description at
http://www.cs.tut.fi/~jkorpela/forms...on.html#submit

Then one could include
<input type="hidden" value="GO" name="login">
into the form.

But if you ask me, I'd suggest using a normal submit button instead of
creating problems and then finding fixes for them. A submit button could
be styled if desired, but it is more user-friendly to let browsers
display submit buttons in their own style, which the user is familiar
with.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #6
Thor Kottelin <th**@anta.ne t> wrote in message news:<41******* ********@anta.n et>...
b2b2u wrote:

David Dorward <do*****@yahoo. com> wrote in message news:<cg******* ************@ne ws.demon.co.uk> ...
b2b2u wrote:

> I can't seem to get a form to submit using an image !? <input type="image" name="login" src="/graphics/go.gif">

Aside from the missing (but required) alt attribute, there is nothing
obviously wrong with this. Try providing a URI so that people can see the
code in context.

http://royalmediacom.readyhosting.com/loginTest.cfm (works) use aaa,aaa
http://royalmediacom.readyhosting.com/loginTest2.cfm (image)


As far as HTML is concerned, both examples work. If the application is
broken, that's probably a programming issue.

Thor

It can't be a programming issue as the back end is the same. The only
difference between the two files is the <input type>. EVERYTHING else
is the same.

input type="image" sends x/y variables but I don't see how that
affects anything.

thx everyone
Jul 23 '05 #7
Thanks for the link. I've found that to. It works in Mozilla but not in IE 6.

I'll have to keep looking for a work-around.

thx

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message news:<Xn******* *************** *******@193.229 .0.31>...
David Dorward <do*****@yahoo. com> wrote:
It looks like the issue is with the Cold Fusion. It probably depends
on a form variable called "login" to decide if the user is trying to
login or not.


That would be my guess too. An image submit button causes different data
to be sent; see a description at
http://www.cs.tut.fi/~jkorpela/forms...on.html#submit

Then one could include
<input type="hidden" value="GO" name="login">
into the form.

But if you ask me, I'd suggest using a normal submit button instead of
creating problems and then finding fixes for them. A submit button could
be styled if desired, but it is more user-friendly to let browsers
display submit buttons in their own style, which the user is familiar
with.

Jul 23 '05 #8

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

Similar topics

4
17257
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would do myDomElement.click and the mouse doesn't matter, but in the case of an input image element, what happens is the submitted url has something like "?x=12&y=7" appended to it (the numbers vary per mouse position on the clicked element). If you hit...
1
21030
by: Wayne | last post by:
Please help... For some odd reason onclick is not working with and <input type="image"> but works fine on an <input type="button">.... This does not work: <input TYPE="image" src="go.gif" onclick="thisthis(form.text1.value,form.select1.value)"> But this works fine: <input TYPE="button" width="20" VALUE="SEARCH" onclick="thisthis(form.text1.value,form.select1.value)">
2
5788
by: Kimmo R. M. Hovi | last post by:
Currently I have defined: -- clip clip -- <form method="post" action="xx" enctype="application/x-www-form-urlencoded"> <input type="image" name="Function 1" src="image1.gif" border="0" title="1">
1
4134
by: Brian Genisio | last post by:
Hi all, I noticed that the image input type does not show up in the elements array (IE 6.0). <FORM name=myForm> <INPUT name=rads id=check1 type=radio value=val1> <INPUT name=rads id=check2 type=radio value=val2 checked> <INPUT name=rads id=check3 type=radio value=val3> <INPUT name=rads id=check4 type=radio value=val4>
1
1711
by: champ.supernova | last post by:
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...
1
1517
by: dwa | last post by:
This is a bit off-topic, but... Is it possible to write client side script that can address INPUT controls with a type of "image" which will work under Netscape/Mozilla? <INPUT type="image" ...> Controls of this type are excluded from the forms.elements collection and 'document.all' isn't supported my Mozilla browsers?
2
6603
by: jon | last post by:
Hi This might be an easy one to answer but I have a web form in an ASP.NET 1.1 application with a hand-rolled HTML image button as follows which opens a help guide in a new window: <input type= "image " id= " imgHelp " onclick="javascript:void(window.open('<% Response.Write(ConfigurationSettings.AppSettings); %>')) ">
3
21271
by: jackiepatti | last post by:
QUESTION: I have a web page containing a form that contains an image instead of a submit button, e.g. <form name='myform' action='get' method='otherpage.asp'> <input type='image' src='picture.gif' name='myimage' id='myimage'> </form> When forms with image types are submitted, the value is not returned; instead, when the form is submitted, the XY coordinates of the where the user clicked on the image are sent. For example, if the user
8
14252
by: John | last post by:
Hi Pasrt of HTML - <div class='button'><input type='image' src='/images/check1.jpg'></input></div> Part of CSS - ..button {background-image: url(/images/check1.jpg); background-repeat:
0
9287
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5155
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3817
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
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.