Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IE 7 won't call onchange after onkeypress fires (using enter key)

6 views
Skip to first unread message

TS

unread,
Dec 2, 2009, 11:28:14 AM12/2/09
to
I have searched and searched the internet for the solution but cannot find
it. I have an asp.net 2.0 application running the page, but everything is
good...inspecting the control in JS debugging I can see that the onchange
function is setup correctly.

The normal function of the textbox on tab out when the value has changed is
to fire onchange then onblur. When the value changes and I hit enter key,
onkeypress runs then onblur, but not onchange. The event is not raised. I
have added event listeners using attachEvent (which fires during tab out)
and it won't get called either.

I can't just call onchange() from the onkeypress handler because it will
always run even when the value doesnt change (I do a postback onchange so I
cant have it run unless the value really does change)


Please help me as I dont know what else to do.

thanks


PA Bear [MS MVP]

unread,
Dec 2, 2009, 12:38:41 PM12/2/09
to
Developer-specific resources:

MSDN IE Development Forums <=post such questions here instead
http://social.msdn.microsoft.com/forums/en-US/category/iedevelopment/

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
debugging tool for IE6, IE7, and IE8)
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.aspx

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Client - since 2002
www.banthecheck.com

0 new messages