locked
empty button by wave errors RRS feed

  • Question

  • User-944424728 posted

    Hello, how do I fix empty button causing when running WAVEs tool in the code behind file? this is the button error "<button type="button" class="ui-dialog-titlebar-close" wiid="C2130">

    and probably this is the line

    " .AppendLine("$('.dashAlert').children('.ui-dialog-buttonpane').children('.ui-dialog-buttonset').children('.ui-button').addClass('dashAlertButton');")   

    --

    "<div tabindex="-1" role="dialog" wiid="N2126" class="ui-dialog ui-corner-all ui-widget ui-widget-content ui-front ui-draggable" aria-describedby="notificationModal" aria-labelledby="ui-id-1" style="display: none; ;"><div class="ui-dialog-titlebar ui-corner-all ui-widget-header ui-helper-clearfix ui-draggable-handle" wiid="N2128"><span id="ui-id-1" class="ui-dialog-title" wiid="C2129"></span>

    1<button type="button" class="ui-dialog-titlebar-close" wiid="C2130">

    </div>

    Dim msg As String = String.Format(Resources.Resource.SignInOrRegisterForResume, CommonSiteName)
    .AppendLine("var dialog = $('<p>" & msg & "</p>').dialog({")
    .AppendLine(" modal: true,")
    .AppendLine(" dialogClass: 'dashAlert', ")
    .AppendLine(" title: '" & "Sign In Or Register" & "', ")
    .AppendLine(" closeText: '',")
    .AppendLine(" buttons: {")

    ==

    .AppendLine("$('.dashAlert').css('z-index',99001);")
    .AppendLine("$('.dashAlert').children('.ui-dialog-titlebar').removeClass('ui-corner-all');")
    .AppendLine("var tmpColor = $('.portlet-content').css('border-right-color') ;")
    .AppendLine("$('.dashAlert').children('.ui-dialog-content').addClass('dashAlert-helper-clearfix');")
    .AppendLine("$('.dashAlert').children('.ui-dialog-buttonpane').addClass('dashAlert-helper-clearfix');")
    .AppendLine("$('.dashAlert').children('.ui-dialog-buttonpane').children('.ui-dialog-buttonset').children('.ui-button').addClass('dashAlertButton');")
    .AppendLine("$('.dashAlert > div > button > span').removeClass('ui-icon');")
    .AppendLine("$('.dashAlert > div > button ').addClass('dashAlert-ui-icon');")
    .AppendLine("$('.dashAlert').children('.ui-dialog-buttonpane').css('margin-left','4px');")

    .AppendLine("$('.dashAlert').children('.ui-dialog-buttonpane').css('font-size','smaller');")

    Wednesday, October 16, 2019 8:02 PM

All replies

  • User288213138 posted

    Hi aspvbnet,

    how do I fix empty button causing when running WAVEs tool in the code behind file?

    According to your description, i can't reproduce your question.

    WAVE is a third-party tool, can you show me how to use it in the code behind file?

    " .AppendLine("$('.dashAlert').children('.ui-dialog-buttonpane').children('.ui-dialog-buttonset').children('.ui-button').addClass('dashAlertButton');")   

    --

    "<div tabindex="-1" role="dialog" wiid="N2126" class="ui-dialog ui-corner-all ui-widget ui-widget-content ui-front ui-draggable" aria-describedby="notificationModal" aria-labelledby="ui-id-1" style="display: none; ;"><div class="ui-dialog-titlebar ui-corner-all ui-widget-header ui-helper-clearfix ui-draggable-handle" wiid="N2128"><span id="ui-id-1" class="ui-dialog-title" wiid="C2129"></span>

    <div class="selectedcode" style="box-sizing: border-box; outline: #5e8c4e dotted 1px; background-color: #e6e6e6;" wiid="C22213" data-reportxpath="/BODY[1]/DIV[17]/DIV[1]/BUTTON[1]">1<button type="button" class="ui-dialog-titlebar-close" wiid="C2130"></div>

    </div>

    What are these, please describe your problem and code in detail.

    Best regards,

    Sam

    Thursday, October 17, 2019 6:29 AM