Leozin 0 Denunciar post Postado Julho 15, 2011 Ola pessoal, gostaria de saber se vcs conhecem o metodo de abrir na mesma pagina, nao sei se é iframe, estou perdido para procurar no google, Esse metodo acontece quando eu clico no botao e abre os produtos na mesma pagina sem chamar outra, se alguem saber o nome ou tiver algum script pronto poderia postar para mim? Agradeço desde já... Compartilhar este post Link para o post Compartilhar em outros sites
Dropes 0 Denunciar post Postado Julho 15, 2011 Opa amigo voce pode usar iframe ou javascript(ajax) o iframe e mais facil http://www.w3schools.com/TAGS/tag_iframe.asp Mais o java script fica mais bonito. o js fica assim <script type="text/javascript"> // JavaScript Document startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("nav"); for (i=0; i<navRoot.childNodes.length; i++) { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } } window.onload=startList; var http = false; if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } function troca(pagina, dives) { http.open("GET", pagina, true); http.onreadystatechange=function() { if(http.readyState == 4) { document.getElementById(dives).innerHTML = http.responseText; } } http.send(null); } </script> e o html para pegar fica assim <a href="#" onclick="javascript:troca('sua pagina', 'div que queira que apareça')"> espero ter ajudado Compartilhar este post Link para o post Compartilhar em outros sites
Leozin 0 Denunciar post Postado Julho 15, 2011 Pod fechar ja consegui =) valew Compartilhar este post Link para o post Compartilhar em outros sites