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

Discussion in 'ASP .Net' started by jeffkretz, Sep 25, 2007.

  1. jeffkretz

    jeffkretz Guest

    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
    jeffkretz, Sep 25, 2007
    #1
    1. Advertising

  2. On Sep 25, 10:14 pm, 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


    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
    Alexey Smirnov, Sep 25, 2007
    #2
    1. Advertising

  3. jeffkretz

    bruce barker Guest

    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
    >
    bruce barker, Sep 25, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Replies:
    1
    Views:
    1,326
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    532
    SpamProof
    Oct 21, 2003
  3. Joop
    Replies:
    5
    Views:
    570
  4. ljlolel
    Replies:
    2
    Views:
    492
  5. jatrojoomla
    Replies:
    1
    Views:
    165
Loading...

Share This Page