Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeffkretz - 25 Sep 2007 21:14 GMT
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
Alexey Smirnov - 25 Sep 2007 21:22 GMT
> The ValidationSummaryOnSubmit method, which is a built-in microsoft
> javascript method for handling the validation summary control has a
[quoted text clipped - 27 lines]
>
> 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=ValidationSummaryOnSubmit+bug
bruce barker - 25 Sep 2007 22:56 GMT
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)

> The ValidationSummaryOnSubmit method, which is a built-in microsoft
> javascript method for handling the validation summary control has a
[quoted text clipped - 27 lines]
>
> JK

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.