Home > Archive > ASP > July 2006 > how to detect submit on input type=image if no image found
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to detect submit on input type=image if no image found
|
|
| wolfing1@gmail.com 2006-07-03, 6:55 pm |
| Normally I would do something like
if request.form("submitbutton.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. 2006-07-03, 6:55 pm |
| wrote on 03 jul 2006 in microsoft.public.inetserver.asp.general:
> Normally I would do something like
> if request.form("submitbutton.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)
| |
| Dave Anderson 2006-07-03, 6:55 pm |
| wolfing1@gmail.com wrote:
> Normally I would do something like
> if request.form("submitbutton.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("submitbutton.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.
|
|
|
|
|