Comunidad de diseño web y desarrollo en internet online

Problema con variables metodo GET

Citar            
MensajeEscrito el 16 Jun 2006 04:22 pm
Buenas!!!
(VAMOS ARGENTINA CARAJO!!!!! SEIS A CERO A SERBIA Y MONTENEGRO!!!!!!!!!!!!)
*Pablito recupera su compostura XD...

Se me planteó el siguiente problema:
Yo envio una variable por metodo get, y al imprimirla me devuelve '[object]'... cosa que no es...
El codigo es el siguiente:

funcion de envio

Código :

function abrir_calendario(fieldName){
   var win;
   win = window.open('calendario.php?fieldname='+fieldName,'calendario','width=229,height=205');
   win.focus()
}


Llamo a la funcion abrir_calendario

Código :

<img src="../images/agenda.gif" style="cursor:hand" onclick="javascript:abrir_calendario(t1);"> <img src="../images/dedo.gif" style="cursor:hand" onclick="javascript:document.all.item('t1').value='<?php echo $fecha['year'].'-'.$fecha['mon'].'-'.$fecha['mday'];?>';" title="Hoy">


recepcion

Código :

<?php echo $_GET['fieldname']; ?>


¿Què estoy haciendo mal? :S...
Desde ya muchas gracias!!


Pablo


PD: ARGENTINA A OCTAVOS!!!!

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

firefox
Citar            
MensajeEscrito el 16 Jun 2006 11:41 pm
Listo...

reemplacé:

Código :

   win = window.open('calendario.php?fieldname='+fieldName,'calendario','width=229,height=205');


por:

Código :

   win = window.open('calendario.php?fieldname='+fieldName'','calendario','width=229,height=205');


Solucionado...

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

firefox
Citar            
MensajeEscrito el 17 Jun 2006 09:50 am
c00l :lol:

Por DaHouseCat

Claber

1011 de clabLevel

2 tutoriales

Genero:Masculino  

Smarphones Fan Boy

firefox
Citar            
MensajeEscrito el 17 Jun 2006 10:34 pm
jejejeje el mismo se cobra y se da el vuelto... ¬_¬

Por Takashi

Claber

105 de clabLevel



Genero:Masculino  

Caracas - Venezuela

firefox
Citar            
MensajeEscrito el 18 Jun 2006 09:32 pm
jejejeje... y bueno... habian pasado 3 horas intentando resolverlo... y fue lo mas boludo, en lo que menos me fijé XD

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.