Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to submit a bug to microsoft on .NET javascript?

Reply
Thread Tools

How to submit a bug to microsoft on .NET javascript?

 
 
jeffkretz
Guest
Posts: n/a
 
      09-25-2007
The ValidationSummaryOnSubmit method, which is a built-in microsoft
javascript method for handling the validation summary control has a
bug.

It uses 5 variables for rendering the control:
headerSep,first,pre,post,end.

However, these variables are NOT defined with the "var" keyword, so
they are not treated as local variables, but global variables.

I happened to have a span on the page <span id="end"/>, which Internet
Explorer for some reason treats as a global variable.
alert(end==document.getElementById('end')) returns "true" in IE7.

When I try to use the ValidationSummary control, a javascript error is
thrown, because the command:

end = "</ul>"

fails, as the global variable "end" is protected as representing the
DOM object.

I solved this by renaming my DOM element to something else, but this
is just sloppy javascript (omitting the "var" declaration to make a
set of local variables). I'd like to submit this to MS so they could
address the issue, but I couldn't for the life of me figure out how to
do it.

Any ideas?

JK

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      09-25-2007
On Sep 25, 10:14 pm, jeffkretz <(E-Mail Removed)> wrote:
> The ValidationSummaryOnSubmit method, which is a built-in microsoft
> javascript method for handling the validation summary control has a
> bug.
>
> It uses 5 variables for rendering the control:
> headerSep,first,pre,post,end.
>
> However, these variables are NOT defined with the "var" keyword, so
> they are not treated as local variables, but global variables.
>
> I happened to have a span on the page <span id="end"/>, which Internet
> Explorer for some reason treats as a global variable.
> alert(end==document.getElementById('end')) returns "true" in IE7.
>
> When I try to use the ValidationSummary control, a javascript error is
> thrown, because the command:
>
> end = "</ul>"
>
> fails, as the global variable "end" is protected as representing the
> DOM object.
>
> I solved this by renaming my DOM element to something else, but this
> is just sloppy javascript (omitting the "var" declaration to make a
> set of local variables). I'd like to submit this to MS so they could
> address the issue, but I couldn't for the life of me figure out how to
> do it.
>
> Any ideas?
>
> JK


VS.NET - Help - Report a bug
http://connect.microsoft.com/VisualStudio

but it seems it's already known issue
http://www.google.com/search?hl=en&q...ryOnSubmit+bug

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      09-25-2007
you can post it and hope they notice. you can open a support call, which
will cost, but if its a bug they are supposed to refund the money.

you could install the beta of the next release, and if its still there
and report a bug (beta's have bug reporting).

you have the current workaround.

-- bruce (sqlwork.com)



jeffkretz wrote:
> The ValidationSummaryOnSubmit method, which is a built-in microsoft
> javascript method for handling the validation summary control has a
> bug.
>
> It uses 5 variables for rendering the control:
> headerSep,first,pre,post,end.
>
> However, these variables are NOT defined with the "var" keyword, so
> they are not treated as local variables, but global variables.
>
> I happened to have a span on the page <span id="end"/>, which Internet
> Explorer for some reason treats as a global variable.
> alert(end==document.getElementById('end')) returns "true" in IE7.
>
> When I try to use the ValidationSummary control, a javascript error is
> thrown, because the command:
>
> end = "</ul>"
>
> fails, as the global variable "end" is protected as representing the
> DOM object.
>
> I solved this by renaming my DOM element to something else, but this
> is just sloppy javascript (omitting the "var" declaration to make a
> set of local variables). I'd like to submit this to MS so they could
> address the issue, but I couldn't for the life of me figure out how to
> do it.
>
> Any ideas?
>
> JK
>

 
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
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola MCSE 4 11-15-2006 02:40 AM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola Microsoft Certification 3 11-14-2006 05:18 PM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd realexxams@yahoo.com Microsoft Certification 0 05-10-2006 02:35 PM
microsoft.public.dotnet.faqs,microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb Charles A. Lackman ASP .Net 1 12-08-2004 07:08 PM



Advertisments