how to detect submit on input type=image if no image found

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wolfing1@gmail.com

    how to detect submit on input type=image if no image found

    Normally I would do something like
    if request.form("s ubmitbutton.x") <"" then
    ....
    end if

    But I found a problem when the browser uses the 'alt text' instead of
    the image (when the image is not found, or if the browser is not
    displaying graphics, etc. How do you detect that? or should I?

  • Evertjan.

    #2
    Re: how to detect submit on input type=image if no image found

    wrote on 03 jul 2006 in microsoft.publi c.inetserver.as p.general:
    Normally I would do something like
    if request.form("s ubmitbutton.x") <"" then
    ...
    end if
    >
    But I found a problem when the browser uses the 'alt text' instead of
    the image (when the image is not found, or if the browser is not
    displaying graphics, etc. How do you detect that? or should I?
    You should not.

    butt.x and butt.y values are submitted anyway. [IE6]

    Not an ASP issue, methinks.


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Dave Anderson

      #3
      Re: how to detect submit on input type=image if no image found

      wolfing1@gmail. com wrote:
      Normally I would do something like
      if request.form("s ubmitbutton.x") <"" then
      ...
      end if
      >
      But I found a problem when the browser uses the 'alt text'
      instead of the image (when the image is not found, or if the
      browser is not displaying graphics, etc. How do you detect
      that? or should I?
      Unless you actually need the x-coordinate upon which the click occurs, why
      not just examine Request.Form("s ubmitbutton.x") .Count ?


      --
      Dave Anderson

      Unsolicited commercial email will be read at a cost of $500 per message. Use
      of this email address implies consent to these terms.


      Comment

      • wolfing1@gmail.com

        #4
        Re: how to detect submit on input type=image if no image found


        Dave Anderson wrote:
        wolfing1@gmail. com wrote:
        Normally I would do something like
        if request.form("s ubmitbutton.x") <"" then
        ...
        end if

        But I found a problem when the browser uses the 'alt text'
        instead of the image (when the image is not found, or if the
        browser is not displaying graphics, etc. How do you detect
        that? or should I?
        >
        Unless you actually need the x-coordinate upon which the click occurs, why
        not just examine Request.Form("s ubmitbutton.x") .Count ?
        >
        Oh, never used that before. so if the post is
        'whatever.asp?s ubmitbutton.x=& submitbutton.y= ' ... It'll return
        something?
        Thanks I'll try that, guess I should use that form instead of the 'if
        request.form("s ubmitbutton.x") <"" then' that I've been using all
        this time

        Comment

        Working...