
16/01/2011, 07:07
|
 | | | Fecha de Ingreso: noviembre-2006 Ubicación: Zafra, Extremadura, Spain, Spain
Mensajes: 174
Antigüedad: 18 años, 3 meses Puntos: 10 | |
Respuesta: Error en funcion onchange Como no has pasado el código completo...bueno, esto es lo que te puede valer...supongo.
<html>
<head>
<script>function reloadCustomMap(){
var category1 = document.getElementById("category1").options[document.getElementById("category1").selectedIndex].value;
var category2 = document.getElementById("category2").options[document.getElementById("category2").selectedIndex].value;
var ratingThis = document.getElementById("ratingThis").options[document.getElementById("ratingThis").selectedInde x].value;
var searchThis = document.getElementById("searchThis").value;
alert('900143-xmlV2.php?filter=search&a='+category1+'&b= '+category2+'&c='+ratingThis+'&d='+searchT his);
initialize('900143-xmlV2.php?filter=search&a='+category1+'&b= '+category2+'&c='+ratingThis+'&d='+searchT his);
}
</script>
</head>
<body>
<select id="category1" onchange="reloadCustomMap();">
<option>Perros</option>
<option>Gatos</option>
<option>Peces</option>
<option>Aves</option>
</select>
<select id="category2" onchange="reloadCustomMap();">
<option>Guau</option>
<option>Miau</option>
<option>Glub</option>
<option>Eek</option>
</select>
<select id="ratingThis" onchange="reloadCustomMap();">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input id="searchThis" type="text" value="Hello world">
</body>
</html> |