Hola amigos!!!:
Me gustaria q echárais un vistazo a este código y q me indicarais dnd puede estar el error.
La página muestra perfectamente el buscador, pero a la hora de efectuar la búsqueda me indica errores en la página...
En el HEAD:
<script language="javascript">
window.name= 'portal';
function search(url){
var frm = document.lista_empresas;
if(frm.razonsocial.value != '')
url = url+'&razonsocial=' + formatea(frm.razonsocial.value);
var IndexProv = frm.provincia.selectedIndex;
var valorProv = frm.provincia.options[IndexProv].value;
url = url+'&provincia='+valorProv
document.location.href= url;
//alert('valor'+url);
}
function formatea(input){
CARACTERES = ("ñÑáéíóúàèìòùÁÉÍÓÚÀÈÌÒÙ ");
CARACTERES_SUSTITUIR = ("nNaeiouaeiouAEIOUAEIOU+");
var cadena = "";
var found = false;
for(var i=0; i < input.length; i++){
var chr = input.charAt(i);
found = false;
for(var j=0; j < CARACTERES.length; j++){
if(chr == CARACTERES.charAt(j)){
cadena += CARACTERES_SUSTITUIR.charAt(j);
found = true;
}//if
}//for j
if(!found){
cadena += chr;
}//if
}//for i
return cadena;
}//formatea
</script>
En el BODY
<span class="cuerpo1">Busque GRATIS cualquier empresa:</span>
<table width="226">
<tr>
<td height="143" width="250" nowrap>
<form method="post" action="http://www.e-informa.com:10240/servlet/app?portal=PLAN&id_partner/10102=12&prod=LISTA_EMPRESAS&prod_mostrar=ETIQUETA _EMPRESA" name="lista_empresas">
<table border="0" cellpadding="0" cellspacing="0" width="226">
<tr>
<td colspan="3" align="left"><img src="http://www.e-informa.com/img/spacer.gif" width="1" height="10" alt="" border="0"></td>
</tr>
<td align="left" height="95">
<table border="0" cellpadding="2" cellspacing="0" width="217" align="left">
<tr>
<td width="70"><img src="http://www.e-informa.com/img/hp_buscar_btn_empresa.gif" width="70" height="13" alt="" border="0" hspace="6" align="middle"></td>
<td width="129">
<input type="text" value="Razón Social" size="18" class="auform" name="razonsocial" maxlength="255" tabindex="1">
</td>
</tr>
<tr>
<td height="23" width="80"><img src="http://www.e-informa.com/img/hp_buscar_btn_provincia.gif" width="70" height="13" alt="" border="0" hspace="6" align="middle"></td>
<td colspan="2" class="auform" height="23" width="129">
<br>
<SELECT name=provincia class="auform" tabindex="2">
<OPTION selected value="" class="auform">Sel. Provincia</OPTION>
<OPTION value=01>Álava</OPTION>
<OPTION value=02>Albacete</OPTION>
<OPTION value=03>Alicante</OPTION>
<OPTION value=04>Almería</OPTION>
<OPTION value=33>Asturias</OPTION>
<OPTION value=05>Ávila</OPTION>
<OPTION value=06>Badajoz</OPTION>
<OPTION value=07>Baleares</OPTION>
<OPTION value=08>Barcelona</OPTION>
<OPTION value=09>Burgos</OPTION>
<OPTION value=48>Bilbao (Vizcaya)</OPTION>
<OPTION value=10>Cáceres</OPTION>
<OPTION value=11>Cádiz</OPTION>
<OPTION value=39>Cantabria (Santander)</OPTION>
<OPTION value=12>Castellón</OPTION>
<OPTION value=55>Ceuta</OPTION>
<OPTION value=13>Ciudad Real</OPTION>
<OPTION value=14>Córdoba</OPTION>
<OPTION value=15>Coruña</OPTION>
<OPTION value=16>Cuenca</OPTION>
<OPTION value=17>Gerona</OPTION>
<OPTION value=18>Granada</OPTION>
<OPTION value=19>Guadalajara</OPTION>
<OPTION value=20>Guipuzcoa</OPTION>
<OPTION value=21>Huelva</OPTION>
<OPTION value=22>Huesca</OPTION>
<OPTION value=23>Jaén</OPTION>
<OPTION value=24>León</OPTION>
<OPTION value=25>Lérida</OPTION>
<OPTION value=27>Lugo</OPTION>
<OPTION value=28>Madrid</OPTION>
<OPTION value=29>Málaga</OPTION>
<OPTION value=56>Melilla</OPTION>
<OPTION value=30>Murcia</OPTION>
<OPTION value=31>Navarra</OPTION>
<OPTION value=32>Orense</OPTION>
<OPTION value=33>Oviedo</OPTION>
<OPTION value=34>Palencia</OPTION>
<OPTION value=35>Palmas (Las)</OPTION>
<OPTION value=36>Pontevedra</OPTION>
<OPTION value=26>Rioja (La)</OPTION>
<OPTION value=37>Salamanca</OPTION>
<OPTION value=38>Sta Cruz de Tenerife</OPTION>
<OPTION value=39>Santander (Cantabria)</OPTION>
<OPTION value=40>Segovia</OPTION>
<OPTION value=41>Sevilla</OPTION>
<OPTION value=42>Soria</OPTION>
<OPTION value=43>Tarragona</OPTION>
<OPTION value=44>Teruel</OPTION>
<OPTION value=45>Toledo</OPTION>
<OPTION value=46>Valencia</OPTION>
<OPTION value=47>Valladolid</OPTION>
<OPTION value=48>Vizcaya</OPTION>
<OPTION value=49>Zamora</OPTION>
<OPTION value=50>Zaragoza</OPTION>
<OPTION value=00> Todas</OPTION>
</select>
</td>
</tr>
<tr>
<td height="20" width="80"> </td>
<td colspan="2" class="auform" height="20" width="129"><a href="javascript:search('http://www.e-informa.com:10240/servlet/app?portal=PLAN&id_partner/10102=12&prod=LISTA_EMPRESAS&prod_mostrar=ETIQUETA _EMPRESA')"><img src="http://www.e-informa.com/img/hp_buscar_btn_buscar.gif" width="62" height="13" alt="" border="0" hspace="6" tabindex="3" align="right"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
Una ayudita???
GRACIAS!!!
Salu2,