How do I add a photo to my comment or blog entry?
how to detect submit on input type=image if no image found
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > ASP web-programming > how to detect submit on input type=image if no image found 29 June 2008 17:09:13

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

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

Guest 29 June 2008 17:09:13
 Normally I would do something like
if request.form("submi­tbutton.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?

Add comment
Evertjan. 3 July 2006 23:59:59 permanent link ]
 wrote on 03 jul 2006 in microsoft.public.in­etserver.asp.general­:
Normally I would do something like> if request.form("submi­tbutton.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)
Add comment
Dave Anderson 4 July 2006 00:09:22 permanent link ]
 wolfing1@gmail.com wrote:> Normally I would do something like> if request.form("submi­tbutton.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("submi­tbutton.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.


Add comment
Guest 5 July 2006 20:30:20 permanent link ]
 
Dave Anderson wrote:> wolfing1@gmail.com wrote:> > Normally I would do something like> > if request.form("submi­tbutton.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("submi­tbutton.x").Count ?>
Oh, never used that before. so if the post is
'whatever.asp?submi­tbutton.x=&submitbut­ton.y=' ... It'll return
something?
Thanks I'll try that, guess I should use that form instead of the 'if
request.form("submi­tbutton.x") <> "" then' that I've been using all
this time

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > ASP web-programming > how to detect submit on input type=image if no image found 29 June 2008 17:09:13

see also:
[EJB 3.0] - WrongClassException with…
[JBoss Portal] - Interportlet…
[JBoss Portal] - Error from JSF app…
пройди тесты:
see also:
:-D Hey, I've got a pretty lot of...
13 Must Have Firefox Extensions for Web…
October 31 All Life On Earth Will Die

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .