By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?

Jul 3 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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)
Jul 3 '06 #2

P: n/a
wo******@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.
Jul 3 '06 #3

P: n/a

Dave Anderson wrote:
wo******@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 ?
Oh, never used that before. so if the post is
'whatever.asp?submitbutton.x=&submitbutton.y=' ... It'll return
something?
Thanks I'll try that, guess I should use that form instead of the 'if
request.form("submitbutton.x") <"" then' that I've been using all
this time

Jul 5 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.