
01/02/2006, 08:07
|
 | | | Fecha de Ingreso: enero-2006 Ubicación: Barakaldo, Bizkaia
Mensajes: 92
Antigüedad: 19 años, 1 mes Puntos: 0 | |
Hola,
he estado haciendo pruebas con tu funcion javascript y la verdad no encuentro ningun error excepto en la variable PARENT que queda vacia.
Te escribo el codigo con las modificaciones que le he echo añadiendo algunos alerts en los puntos que creo son importantes.
Pruebalo completo haber si te da alguna idea lo que aparece.
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title>Welcome to Adobe GoLive 4</title>
<script language="JavaScript">
function read(form){
var value = form;
var fgmt ='';
var i = 0;
var sw = 1;
var PARENT ='';
while (value != ''){
alert (i);
var f = value.substring(i,i+1,value);
if ((f != '$') && (f !='/')){fgmt = fgmt+f;}
i++;
if (f == '$' || f == '/'){
var largo = fgmt.length;
value = value.substring(largo+1,value.length,value);
alert ("el valor de value es = "+value);
i = 0;
if (sw == 1){
var DFO = fgmt;
alert ("El valor de DFO es " +DFO);
}
if (sw == 2)
{
var SHOW = fgmt;
alert ("El valor de SHOW es " + SHOW);
}
if (sw == 3)
{
var FLUJO = fgmt;
alert ("El valor de FLUJO es " +FLUJO);
}
if (sw == 4)
{
var PASO = fgmt;
alert ("El valor de PASO es "+PASO);
//PARENT toma el valor de value
PARENT = value;
alert("El valor de PARENT es "+PARENT);
url="http://localhost:8081/cocoon/xml_wpc/WPC_"+DFO+"?SHOW="+SHOW+"&FLUJO="+FLUJO+"&PASO="+P ASO+"&PARENT="+PARENT;
alert (url);
window.location=url;
}
sw++;
fgmt = '';
}
}
}
</script>
</head>
<body onLoad="read('CUNMG-007$DFO$BASICO$3/')">
</body>
</html>
SAludos !!!! |