Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/03/2009, 14:05
alexisfch
 
Fecha de Ingreso: septiembre-2007
Mensajes: 150
Antigüedad: 17 años, 4 meses
Puntos: 1
Exclamación Respuesta: Url que varia segun campo de texto!!!

Hola:

me funciono al final asi:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body><form target="_blank">
<input name="nombreid" type="text" value="novadent" />
<input name="" type="button" value="Buscar Info" onclick='javascript: window.location.href="http://www.mercantil.com/SE/Results.asp?wordstype=ALL&optArea=ALL&optsearchby=mecolegalname&chkiesearchby=ALL&chkNewsSearchBy=t&chkProdSearchBy=prodnameesp&chkBOSField=ALL&chkBOSType=ALL&chkJobField=TIT&keywords=" + document.getElementById("nombreid").value + "&Countrychk=1&optCategory=companies";' /></form>
d
</body>
</html> 
con respecto al id en vez de name es que como no le habia puesto ninguna id, por defecto asuma esta como el nombre (name dle mismo).

Por ultimo, para hacer que se abra en una ventana nueva me puedes decir como seria?