Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/11/2003, 12:53
IvánCF
 
Fecha de Ingreso: noviembre-2003
Mensajes: 2
Antigüedad: 21 años, 4 meses
Puntos: 0
Paso de parametros

Hola a todos....
Se que el paso de parametros es de la siguiente manera:

En el template1.cfm pongo:
<a href="template2.cfm?nombrevar=valor">Link</a>

Y en el template2.cfm pongo:
<cfoutput>#nombrevar#<cfoutput>


Pero el problema es que estoy utilizando frames y no se como pasar el valor a un frame
Intente de esta manera:

En el template1.cfm pongo:
<a href="" onClick="parent.frm1.location.href='template2.cfm? nombrevar=valor';
parent.frm2.location.href='template3.cfm';">Link</a>

Y en el template2.cfm pongo:
<cfoutput>#nombrevar#<cfoutput>

Pero marca un error que dice asi:
An error occurred while evaluating the expression: #nombrevar#
ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:

1.You have misspelled the parameter name, or
2.You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.

Que puedo hacer? Como le paso el valor a mi variable?