thank you very much for a thorough response.
"Walter Wang [MSFT]" <wawang@online.microsoft.com> wrote in message
news:m$epDRBzGHA.4464@TK2MSFTNGXA01.phx.gbl...
> Hi Tim,
>
> I understand your concerns about the browser compatibility issues in
> ASP.NET 2.0.
>
> For this particular issue, the reason is because javascript generated by
> ASP.NET 2.0 has some IE only notation: event.srcElement is not availabe in
> FireFox (use event.target instead):
>
> function WebForm_FireDefaultButton(event, target) {
> if (!__defaultFired && event.keyCode == 13 && !(event.srcElement &&
> (event.srcElement.tagName.toLowerCase() == "textarea"))) {
> var defaultButton;
> if (__nonMSDOMBrowser) {
> defaultButton = document.getElementById(target);
> }
> else {
> defaultButton = document.all[target];
> }
> if (defaultButton && typeof(defaultButton.click) !=
> "undefined") {
> __defaultFired = true;
> defaultButton.click();
> event.cancelBubble = true;
> if (event.stopPropagation) event.stopPropagation();
> return false;
> }
> }
> return true;
> }
>
> If we change the first 2 lines into:
>
> function WebForm_FireDefaultButton(event, target) {
> var element = event.target || event.srcElement;
> if (!__defaultFired && event.keyCode == 13 && !(element &&
> (element.tagName.toLowerCase() == "textarea"))) {
>
> Then it will work for both IE and FireFox.
>
> Actually ASP.NET team is already planning to improve browser compatibility
> in future version. You can submit your feedback at following site:
>
http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 >
>
> Sincerely,
> Walter Wang (wawang@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> Get notification to my posts through email? Please refer to
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
>
http://msdn.microsoft.com/subscriptions/support/default.aspx. > ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>