Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/09/2012, 08:54
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 15 años, 10 meses
Puntos: 220
Respuesta: Funcion en Paneles

Para esto debes usar ajax busca informacion en la web existe muchos ejemplos lo unico que deberias hacer es crear un evento al momento de hacer click en tu panel para realizar el ajax.

Ejemplo:

Código HTML:
Ver original
  1. <li class="TabbedPanelsTab" tabindex="0" onclick="buscarAparatos();">Aparatos</li>

Código Javascript:
Ver original
  1. function createAjax(){
  2.    if (window.XMLHttpRequest)
  3.    {
  4.       xmlhttp=new XMLHttpRequest();
  5.    }
  6.    else
  7.    {
  8.       xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  9.    }
  10. }
  11.  
  12. function buscarAparato()
  13. {
  14.     createAjax();
  15.     xmlhttp.onreadystatechange=function()
  16.     {
  17.         if (xmlhttp.readyState==4 && xmlhttp.status==200)
  18.         {
  19.             document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
  20.         }
  21.     }
  22.     xmlhttp.open("GET","buscarAparato.php",true);
  23.     xmlhttp.send("ID=4");
  24. }
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones