Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2009, 05:30
radge
 
Fecha de Ingreso: enero-2004
Ubicación: here I Am
Mensajes: 437
Antigüedad: 20 años, 3 meses
Puntos: 1
Respuesta: Pasar parametros dentro de un archivo html

Havia pensado que con JS se podria hacer esto

<script language="JavaScript">
function cargarURL()
{
// Create variable is_input to see if there is a ? in the url
var is_input = document.URL.indexOf('?');

// Check the position of the ? in the url
if (is_input != -1)
{
// Create variable from ? in the url to the end of the string
addr_str = document.URL.substring(is_input+1, document.URL.length);

//construeixo URL
document.write='right2.html?'+addr_str+' ';
}
// If there is no ? in the url state no values found
else
{
document.write("No he recibido valores por parametro.");
}
}

</script>


Ahora el problema lo tengo para "poner" ese valor dentro del HTML

<FRAMESET cols="*,27%">
<frame name="top" src="left.html" scrolling="no">
<FRAMESET rows="*,35%" border="5">
<frame name="dx" src="right.html">
<frame name="dx" src="cargarURL();"> <== deberia ir aquí

</FRAMESET>
</FRAMESET>

gracias radge
__________________
Nuevo foro sobr el mundo del motor - Renault foro
http://www.renaultforo.com