none
Script Jquery Não funciona RRS feed

  • Pergunta

  • Olá, boa tarde.

    Eu tenho uma tela que usa 3 javascript, mas eles não estão funcionando.

    O jquery principal está na masterpage. 

    Abaixo tem o meu código, também se eu tiro aquele css que está na página e adiciono em um arquivo que tem no site chamado site.css ele fica sem reconhecer o css, e tudo está setado corretamente, em outras páginas funcionam.

    <asp:Content ID="Content1" ContentPlaceHolderID="cphMainContent" runat="Server">
        <style>
            /* = STEPS CONTAINER ----------------------------*/
            .wizard-steps {
                margin: 0 10px 0 10px;
                padding: 0px;
                ;
                clear: both;
                font-weight: bold;
            }
    
                .wizard-steps div {
                    ;
                }
                /* = STEP NUMBERS ----------------------------*/
                .wizard-steps span {
                    display: block;
                    float: left;
                    font-size: 10px;
                    text-align: center;
                    width: 20px;
                    margin: 2px 5px 0px 0px;
                    line-height: 15px;
                    color: #ccc;
                    background: #FFF;
                    border: 2px solid #CCC;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    border-radius: 10px;
                }
                /* = DEFAULT STEPS ----------------------------*/
                .wizard-steps a {
                    ;
                    display: block;
                    width: auto;
                    height: 24px;
                    margin-right: 18px;
                    padding: 0px 10px 0px 3px;
                    float: left;
                    font-size: 11px;
                    line-height: 24px;
                    color: #666;
                    background: #F0EEE3;
                    text-decoration: none;
                    text-shadow: 1px 1px 1px rgba(255,255,255, 0.8);
                    cursor: default;
                }
    
                    .wizard-steps a:before {
                        width: 0px;
                        height: 0px;
                        border-top: 12px solid #F0EEE3;
                        border-bottom: 12px solid #F0EEE3;
                        border-left: 12px solid transparent;
                        ;
                        content: "";
                        top: 0px;
                        left: -12px;
                    }
    
                    .wizard-steps a:after {
                        width: 0;
                        height: 0;
                        border-top: 12px solid transparent;
                        border-bottom: 12px solid transparent;
                        border-left: 12px solid #F0EEE3;
                        ;
                        content: "";
                        top: 0px;
                        right: -12px;
                    }
    
                /* = COMPLETED STEPS ----------------------------*/
    
                .wizard-steps .completed-step a {
                    color: #163038;
                    background: #A3C1C9;
                }
    
                    .wizard-steps .completed-step a:before {
                        border-top: 12px solid #A3C1C9;
                        border-bottom: 12px solid #A3C1C9;
                    }
    
                    .wizard-steps .completed-step a:after {
                        border-left: 12px solid #A3C1C9;
                    }
    
                .wizard-steps .completed-step span {
                    border: 2px solid #163038;
                    color: #163038;
                    text-shadow: none;
                }
                /* = ACTIVE STEPS ----------------------------*/
                .wizard-steps .active-step a {
                    color: #A3C1C9;
                    background: #053157;
                    text-shadow: 1px 1px 1px rgba(0,0,0, 0.8);
                }
    
                    .wizard-steps .active-step a:before {
                        border-top: 12px solid #053157;
                        border-bottom: 12px solid #053157;
                    }
    
                    .wizard-steps .active-step a:after {
                        border-left: 12px solid #053157;
                    }
    
                .wizard-steps .active-step span {
                    color: #053157;
                    -webkit-box-shadow: 0px 0px 2px rgba(0,0,0, 0.8);
                    -moz-box-shadow: 0px 0px 2px rgba(0,0,0, 0.8);
                    box-shadow: 0px 0px 2px rgba(0,0,0, 0.8);
                    text-shadow: none;
                    border: 2px solid #A3C1C9;
                }
                /* = HOVER STATES ----------------------------*/
                .wizard-steps .completed-step:hover a, .wizard-steps .active-step:hover a {
                    color: #fff;
                    background: #428BCA;
                    text-shadow: 1px 1px 1px rgba(0,0,0, 0.8);
                }
    
                .wizard-steps .completed-step:hover span, .wizard-steps .active-step:hover span {
                    color: #428BCA;
                }
    
                .wizard-steps .completed-step:hover a:before, .wizard-steps .active-step:hover a:before {
                    border-top: 12px solid #428BCA;
                    border-bottom: 12px solid #428BCA;
                }
    
                .wizard-steps .completed-step:hover a:after, .wizard-steps .active-step:hover a:after {
                    border-left: 12px solid #428BCA;
                }
        </style>
    
     <asp:UpdatePanel ID="updSituacao" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
    
     <asp:TextBox ID="txtDC_HOR_EVT_1" runat="server" SkinID=" " CssClass="form-control input-xs hora" Width="50px" placeholder="HORA"></asp:TextBox>
    <asp:TextBox ID="txtDT_EVT_1" runat="server" SkinID=" " CssClass="form-control input-xs data" Width="80px" placeholder="DATA"></asp:TextBox>
    
            </ContentTemplate>
        </asp:UpdatePanel>
    
        
        <script src="js/jquery.maskMoney.js"></script>
        <script src="js/jquery.maskedinput-1.3.min.js"></script>
        <script src="js/datepicker-pt-BR.js"></script>
    
        <script type="text/javascript">
            function checkMaxLen(txt, maxLen) {
                try {
                    if (txt.value.length > (maxLen - 1)) {
                        var cont = txt.value;
                        txt.value = cont.substring(0, (maxLen - 1));
                        return false;
                    };
                } catch (e) {
                }
            }
    
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            prm.add_pageLoaded(function () {
                jQuery(function () {
                    $(".dinheiro").maskMoney({ decimal: ",", thousands: "." });
                    $(".data").mask("99/99/9999");
                    $(".hora").mask("99:99");
                });
    
                $("#<%=txtDT_FTO_GRD_Confirmacao.ClientID %>").bind('paste', function (e) {
                    e.preventDefault();
                });
    
                $("#<%=txtQT_DIA_PZO_FTL_Confirmacao.ClientID %>").bind('paste', function (e) {
                    e.preventDefault();
                });
    
                $(function () {
                    $("#<%=txtDT_EVT_1.ClientID %>").datepicker();
                });
            });
    
            function SomenteNumero(e) {
                var tecla = (window.event) ? event.keyCode : e.which;
                if ((tecla > 47 && tecla < 58)) return true;
                else {
                    if (tecla == 8 || tecla == 0) return true;
                    else return false;
                }
            }
    
            function SomenteLetras() {
                tecla = event.keyCode;
                if (tecla >= 33 && tecla <= 64 || tecla >= 91 && tecla <= 93 || tecla >= 123 && tecla <= 159 || tecla >= 162 && tecla <= 191) {
                    return false;
                } else {
                    return true;
                }
            }
        </script>
    </asp:Content>
    

    Alguém sabe o que pode ser?

    terça-feira, 31 de março de 2015 20:55