Ir para conteúdo
Fórum Script Brasil

rafaeldorazio

Membros
  • Total de itens

    171
  • Registro em

  • Última visita

Tudo que rafaeldorazio postou

  1. Como colocar uma imagem em cima da outra ? Exemplo: Imagem 1 Imagem2
  2. ta muito confuso o seu codigo veja, no var $div faça assim: var div = bla bla ai no jquery aond evc vai usa-lo usa-se assim $(div).show();
  3. Pagina.html $("#conteudoModalDialog").html("<iframe id='iframeModal' src='" + link + "' frameborder='0' width='100%' height='100%' ></iframe>"); Pagina_Iframe <input class="btn" id="btnFechar" runat="server"> Como fazer uma determinada ação quando o btnFechar for clicado usando Jquery ? Lembrando que o btnFechar está no iframe !
  4. Stoma, o iframe vai retornar assim por exemplo : return 100 Como eu faço para pegar esse return do iframe ?
  5. Este código abaixo, ele é criado em modo de execução da página ! <iframe id='iframeModal' src='" + link + "' frameborder='0' width='100%' height='100%' ></iframe> Neste iframe vai ter um código que vai ter 2 botões, Sim e Não. Quando for precionado um deles terá um retorno. Como eu faço para pegar o retorno deste iframe ?
  6. http://img121.imageshack.us/i/dados1.jpg Estes são os dados Json que o Javascript passa para o Php. Como eu faço para ler esses dados sendo que pode existir mais de 1 fun_codigo e fun_cpf e fun_data_nascimento ?
  7. Uma duvida, eu estava pensando em usar o exists 5x para verificar alguns dados do cliente para ver se ele é repetido, para cada ocorrencia de exists concatenava numa variavel o erro e no final retornaria a aplicação todos os erros. Este método vai fazer com que a aplicação fique lenta ?
  8. Como eu faço para retirar aqueles pontos que fica em volta do botão text Não quando é clicado ? http://img824.imageshack.us/i/imgzr.jpg/
  9. o $("button").live("click", function(){ não está funcionando, como eu faço para adicionar o evento click no meu plugin ? <html> <head> <script src="js/jquery-1.4.1.js" type="text/javascript"></script> <script> $(document).ready(function () { $("button").live("click", function(){ alert(""); return false; }); jQuery.fn.MsgBox = function(options, button) { settings = jQuery.extend({ type: "", id: "", text: "" }, button); settings = jQuery.extend({ type: "", word: "" }, options); var htmlButton = ""; $.each(button, function(i, item){ htmlButton += '<input type="'+ item.type +'" id="'+ item.id +'" value="'+ item.text +'">'; }); if( options.type == "question" ) { this.html(options.type +" "+ options.word +"<br />"+ htmlButton); } if( options.type == "confirm" ) { this.html(options.word +"<br />"+ htmlButton +"<br />"+ htmlButton); } if( options.type == "error" ) { this.html(options.word +"<br />"+ htmlButton +"<br />"+ htmlButton); } if( options.type == "info" ) { this.html(options.word +"<br />"+ htmlButton +"<br />"+ htmlButton); } }; $("#teste").MsgBox(options = { type: "question", word: "Deseja fazer a exclusão ?" }, button = [{ type: "button", id: "sim", text: "Sim" }, { type: "button", id: "cancelar", text: "Cancelar" }] ); }); </script> </head><body> <!-- http://docs.jquery.com/Plugins/Authoring#Options -> DOCUMENTAÇÃO DE COMO CRIAR COMPONENTES --> <div id="teste"></div> </body></html>
  10. deu certo FIT, porem fiz umas mudanças. Agora estou vendo um problema na borda, na parte inferior do lado esquerdo e direito não tem, está falho !
  11. teria q usar com % porque depende da resolução do cliente
  12. Clica em Funcionario, depois do lado direito da tela você clica em Pesquisar. Ai abre o iframe !
  13. No iframe , ele carrega a pagina do yahoo, porem uma grande parte da janela, fica vazia ! como mostra a imagem $("body").append("<div id='fadeLoadPesquisa'></div>"); $("#fadeLoadPesquisa").css("height", $("body").height()).css("width", $("body").width()).fadeIn("slow", function () { $(this).css({ 'background': '#000', 'filter': 'alpha(opacity=60)', 'z-index': '9999', height: $(document).height() }); $("#modalDialogPesquisa").css('height', '80%').css("width", '80%').toggle("fast"); $("#modalDialogPesquisa").toggle(); $("#conteudomodalDialogPesquisa").html("<iframe src='http://www.yahoo.com.br' frameborder='0' width='100%' height='100%' ></iframe>"); }); #fadeLoadPesquisa { display: none; /*--hidden by default--*/ background: #FFF; position: fixed; left: 0; top: 0; width: 50%; height: 50%; opacity: .90; z-index: 9999; } #modalDialogPesquisa { border: 1px solid #CFCFCF; background: #F8F5F2; top: 7%; left: 10%; z-index: 99999; position: fixed; } #topomodalDialogPesquisa { float: left; background-color: #DEDEDE; border-top: 1px solid #CCC; border-left: 1px solid #CCC; border-bottom: 1px solid #CCC; width: 100%; }
  14. QUando uso a propriedade background com cor a imagem não aparece por completo <html><head> <link href="css/menu_esquerdo.css" type="text/css" rel="stylesheet"> <script src="js/jquery-1.4.1.js" type="text/javascript"></script> <script> $(document).ready(function () { $("#menu").click( function() { $(this).removeClass().addClass("nav-button selected"); }); }); </script> </head><body> <div class="nav-container"> <div class="nav-button alternate" id="menu1"> <img src="/media/img/overview/featuretable/new_badge.png" width="39" height="27" alt="New Badge" style="margin-left:-3px"> <h2>New in Checkout 3</h2> <p>Checkout 3 offers everything you want from a POS and it's still easy to use.</p> </div> <div class="nav-button selected" id="menu2"> <img src="/media/img/overview/featuretable/sales.png" width="32" height="27" alt="Sales"> <h2>Sales</h2> <p>Checkout handles everything related to sales, orders and invoices with flair.</p> </div> <div class="nav-button2" id="menu3"> <img src="/media/img/overview/featuretable/management.png" width="32" height="30" alt="Management" > <h2>Management</h2> <p>Keep track of your store with Checkout's range of management tools.</p> </div> <div class="nav-button" id="menu4"> <img src="/media/img/overview/featuretable/integration.png" width="32" height="28" alt="Integration" > <h2>Integration</h2> <p>Export your transaction journal to AccountEdge or QuickBooks.</p> </div> <div class="nav-button2" id="menu5"> <img src="/media/img/overview/featuretable/networking.png" width="32" height="29" alt="Networking" > <h2>Networking</h2> <p>Connect up to 20 Macs to your network and they auto-detect your database.</p> </div> <div class="nav-button" id="menu6"> <img src="/media/img/overview/featuretable/hardware.png" width="32" height="28" alt="Hardware" class="hardwaretab"> <h2>Hardware</h2> <p>Trick out Checkout with a cash drawer, barcode scanner and receipt printer.</p> </div> <div class="nav-button2" id="menu7"> <img src="/media/img/overview/featuretable/hardware.png" width="32" height="28" alt="Hardware" class="hardwaretab"> <h2>Hardware</h2> <p>Trick out Checkout with a cash drawer, barcode scanner and receipt printer.</p> </div> </div> </body></html> o css .nav-container{background: url('../images/nav_bg.gif') no-repeat 0 0px; position:absolute; margin-left: 15px; left:0;height:auto;width:300px;} .nav-button{font-size:0.8em;width:90%px;margin:0 2px;cursor:pointer;height:90%px;padding:10px 20px; border-top:1px solid #fff;border-bottom:1px solid #fff} .nav-button:hover{background:#e5f1fa;border-top:1px solid #e5f1fa;border-bottom:1px solid #e5f1fa} .nav-button h2{margin:4px 0 0 50px} .nav-button p{margin:0px 0 0 50px;line-height:1.5em} .nav-button img{float:left;margin:20px 0px 0 0px} .nav-button2{background:#f4f4f4; font-size:0.8em;width:90%px;margin:0 2px;cursor:pointer;height:90%px;padding:10px 20px; border-top:1px solid #f8f8f8;border-bottom:1px solid #f8f8f8} .nav-button2:hover{background:#e5f1fa;border-top:1px solid #e5f1fa;border-bottom:1px solid #e5f1fa} .nav-button2 h2{margin:4px 0 0 50px} .nav-button2 p{margin:0px 0 0 50px;line-height:1.5em} .nav-button2 img{float:left;margin:20px 0px 0 0px} .selected{background:#e5f1fa;border:1px solid #a8b4be;margin:0 1px} .selected:hover{background:#e5f1fa;border:1px solid #a8b4be} .selected h2{}.features{display:none} http://img191.imageshack.us/i/navbgo.gif/
  15. Seria algo parecido com Split ? Por exemplo : parametro = teste, teste2, teste3 Ai no Mysql o parametro recebido vai ser varchar, e atravez de uma função do MYSQL ele vai me retornar cada string separadas pelo caracter "," , seria essa a ideia ?
  16. Qual tipo de parametro eu devo utilizar quando a aplicação passa um array ?
  17. Obrigado Denis Courcy, foi sanada a minha dúvida.
  18. você me aconselharia a usar para fazer Pesquisa na tabela ?
  19. PREPARE M_stmt FROM @meuSQL; EXECUTE M_stmt; DEALLOCATE PREPARE stmt; esta parte do ocdigo o que ela faz ? Uma dúvida, este código ele deixa a procedure lenta ?
  20. por exemplo, como eu passo fun_nome=Rafael Fernandes para que a procedure leia isso ? Sendo que a sp_query é fun_nome=Rafael Fernandes DELIMITER $$ DROP PROCEDURE IF EXISTS `sp_select_delete_funcionario` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_select_delete_funcionario`( IN sp_query VARCHAR(100) ) BEGIN SELECT * FROM Funcionario WHERE sp_query; END IF; END $$ DELIMITER;
  21. exemplo : if( $("#teste3").is(":visible:enabled") ) { if( $("#teste3").val().length > 0 ) { alert("OK"); } else { alert("ERRO"); } } else { //executa codigo quando não estiver visivel ou habilitado } O intuito da minha duvida é fazer 1 if ao invezz de 2 para validar se esta visivel e habilitado e maior que 0 o length
  22. Romerito até entendi, tipo ele não pode pegar o length porque ele está disabled, não precisa me passar o codigo. você sabe como resolver usando dentro do if ? então eu queria fazer em 1 if, mas pelo que estou anlisando não vai rolar, então vou usar este codigo em ultima ocasião: $("#teste3").is(":visible:enabled")
×
×
  • Criar Novo...