Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > how to detect submit on input type=image if no image found

Reply
Thread Tools

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

 
 
wolfing1@gmail.com
Guest
Posts: n/a
 
      07-03-2006
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?

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      07-03-2006
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)
 
Reply With Quote
 
 
 
 
Dave Anderson
Guest
Posts: n/a
 
      07-03-2006
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.


 
Reply With Quote
 
wolfing1@gmail.com
Guest
Posts: n/a
 
      07-05-2006

Dave Anderson wrote:
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
use an anchor to submit, or set image for submit button mikezx10@hotmail.com ASP General 4 03-23-2010 01:25 AM
loading image -> detect when image is done loading edfialk Javascript 0 05-10-2007 07:28 PM
HTTP::Request::Form - Can't submit a form with input type=image button fochie Perl Misc 0 02-01-2005 06:42 AM
why does form with only 1 text input and 1 button input submit on enter? Guy HTML 5 12-13-2003 06:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57