|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Image Onclick Problem- unable to read the Command I have a simple text field and I would like to submit some value to a new window and add it to a database my code will have only a plain image where I want the user will pick a location and after submitting the co-ordinations will be posted. problem is how to I click that image button to open a new window? |
#2
| |||
| |||
Re: Image Onclick Problem- unable to read the Command The odd reason is that the input of type image was intended specifically to submit the form.The INPUT element defines a form control for the user to enter input. While INPUT is most useful within a FORM, HTML 4 allows INPUT in any block-level or inline element other than BUTTON. However, old browsers such as Netscape 4.x will not display any INPUT elements outside of a FORM. If you want to do something other than submit a form, use the onClick handler of an image, or of a Link containing an image. |
#3
| |||
| |||
Re: Image Onclick Problem- unable to read the Command I am planning to show image of map and user will click on some exact point and there will be automatically a red pixel or a char on that exact point. I suppose it can be done via javascript . thanks in advance! |
#4
| |||
| |||
Re: Image Onclick Problem- unable to read the Command The type of form control defined by INPUT is given by the TYPE attribute. I wrote it for a project of mine. It uses a very basic library from the SitePoint book "Simply Javascript." You can probably modify it to use your own library or own code. The default TYPE is text, which provides a single-line text input field. The VALUE attribute specifies the initial value for the text field. The SIZE and MAXLENGTH attributes suggest the number of characters and maximum number of characters, respectively, of the text field. |
![]() |
|
Tags: database, image onclick, read command, window recognition |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to avoid image capturing problem in Nokia X3 | Alfiee | Portable Devices | 4 | 11-04-2011 10:34 AM |
samba share from windows 7 command prompt unable to read | Fred Fruax | Networking & Security | 4 | 06-04-2011 03:50 AM |
How to keep rollover image onClick in javascript? | MAGALY | Software Development | 4 | 08-03-2010 08:02 PM |
Problem: Command Line Option Syntax Error. Type Command /? For Help | Nadeem | MediaCenter | 3 | 03-09-2009 05:41 PM |
Read CD image from Iphoto | carlito | Windows Software | 3 | 23-05-2009 05:43 PM |