Results 1 to 4 of 4

Thread: Image Onclick Problem- unable to read the Command

  1. #1
    Join Date
    Feb 2009
    Posts
    62

    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. #2
    Join Date
    Jan 2006
    Posts
    211

    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. #3
    Join Date
    Feb 2009
    Posts
    62

    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. #4
    Join Date
    Feb 2006
    Posts
    172

    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.

Similar Threads

  1. Unable to avoid image capturing problem in Nokia X3
    By Alfiee in forum Portable Devices
    Replies: 4
    Last Post: 11-04-2011, 10:34 AM
  2. samba share from windows 7 command prompt unable to read
    By Fred Fruax in forum Networking & Security
    Replies: 4
    Last Post: 06-04-2011, 03:50 AM
  3. How to keep rollover image onClick in javascript?
    By MAGALY in forum Software Development
    Replies: 4
    Last Post: 08-03-2010, 08:02 PM
  4. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  5. Read CD image from Iphoto
    By carlito in forum Windows Software
    Replies: 3
    Last Post: 23-05-2009, 05:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,106,606.21952 seconds with 16 queries