SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Graphical submit buttons doesn't work in IE (almost for me)

    Hello everybody:

    I have tried both methods:

    <button type="submit" name="func" value="delete_usr">
    <img src="nou_usuari.png" />
    </button>

    and

    <input type="image" name="func" value="delete_usr" src="nou_usuari.png" />

    and in all cases the sent data (no matter if the method is POST or GET) is the image representing the button, not the pair func=delete_usr.

    This only happens with Internet Explorer (I only tried with the sixth version but in several machines). In FireFox, Netscape, etc... works perfectly. I like to resolve the problem without the use of JavaScript.

    Anyone has any idea?

    Thank you sincerely only for reading the thread (and excuse my english too, if this can be done).

  2. #2
    SitePoint Addict
    Join Date
    Jun 2005
    Location
    Copenhagen, Denmark
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this can be done through CSS, like <button style="1">
    Or something like that, I think you know what I mean

    Dont hang me up on this, good luck!
    - Alexander Kinnunen

  3. #3
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh! Thank you very much Fara0^, God only knows what I could do without your invaluable help, It's an unresolved mystery why you are not the HTML guru of the decade.


    .....


    Eeeeuhh.... I'ts only for joking.


    Seriously: if anyone has any idea.... please telle me.

    Thank you (including Fara0^) very much

  4. #4
    SitePoint Addict
    Join Date
    Jun 2005
    Location
    Copenhagen, Denmark
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Erhm, ok ?
    Well, gotta try :P
    - Alexander Kinnunen

  5. #5
    SitePoint Evangelist figbeam's Avatar
    Join Date
    Jun 2004
    Location
    Sweden
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might try with GIFs or JPGs because IE sometimes have trouble with PNGs for no apparent reason.

  6. #6
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you figbeam, but that didn't work. But (for those who are trying to use graphical submit buttons with IE) I have found a partial solution in another forum.

    The point is Internet Explorer sends all the content between the begin and end button tags (that's documented in the MSDN library). The solution is to use a blank button name and send submit name and value with a hidden field. The obvious problem with that technique is that you can only use one submit button.

    Example:

    <form action="new_user.php" method="get">

    <button type="submit" name="" value="delete_usr">
    <img src="nou_usuari.png" />
    </button>

    <input name="func" type="hidden" value="delete_usr" />

    Hope that helps somebody

    PS: This technique works too with the <input type="image" /> method

  7. #7
    SitePoint Evangelist sputza's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PNG + IE = Problems. Have you tried using a jpg or gif?
    Steven Watkins
    Chief Web Ninja
    Code Monkey Interactive
    lowgravity.ca


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
  •