Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/10/2006, 10:25
Avatar de kctus
kctus
Usuario baneado!
 
Fecha de Ingreso: noviembre-2002
Ubicación: ToledoBsAsGaliciaBolivia
Mensajes: 1.038
Antigüedad: 22 años, 3 meses
Puntos: 1
problema al validar (w3c) una función de javascript

Hola buenas

Pues tengo el siguiente problema.

Mi función:
Código PHP:
function lalala(id,voto)
{
  
window.open('http://www.misitio.com/voto.php?f=' id '&v=' voto"Votacion",  "height=200,width=400,toolbar=no,directories=no,menubar=no,status=no");

Al pasar el validador (http://validator.w3.org)

Código:
Warning  Line 62 column 61: cannot generate system identifier for general entity "v".

...w.en7fotos.com/voto.php?f=' + id + '&v=' + voto, "En7fotos",  "height=200,wid

Error  Line 62 column 61: general entity "v" not defined and no default entity.

...w.en7fotos.com/voto.php?f=' + id + '&v=' + voto, "En7fotos",  "height=200,wid

Warning  Line 62 column 62: reference not terminated by REFC delimiter.

....en7fotos.com/voto.php?f=' + id + '&v=' + voto, "En7fotos",  "height=200,widt

Error  Line 62 column 62: reference to entity "v" for which no system identifier could be generated.

....en7fotos.com/voto.php?f=' + id + '&v=' + voto, "En7fotos",  "height=200,widt

# Info  Line 62 column 60: entity was defined here.

...ww.en7fotos.com/voto.php?f=' + id + '&v=' + voto, "En7fotos",  "height=200,wi
La función me funciona perfectamente... consiste en pasarle dos valores, para variable id y voto. Pero me salen todos esos errores en el validador (no me sale ningún error en la consola de Javascript de Firefox ni similares)

Algunda idea? gracias!!