Foros del Web » Programando para Internet » Javascript »

Problema en Variable

Estas en el tema de Problema en Variable en el foro de Javascript en Foros del Web. Buenas! Os comento mi siguiente error! El tema es que no se como meter en un var (' un ('') ') Y al final me ...
  #1 (permalink)  
Antiguo 01/05/2012, 12:52
 
Fecha de Ingreso: mayo-2012
Mensajes: 1
Antigüedad: 11 años, 11 meses
Puntos: 0
Pregunta Problema en Variable

Buenas!
Os comento mi siguiente error! El tema es que no se como meter en un var (' un ('') ')

Y al final me aparece este error:

Código HTML:
Ver original
  1. .html('<p>Looking to setup your own pop up window?</p>
  2. <p>My free HTML code can help. By not signing up for my email newsletter, I will give you the code for free.</p>
  3. <ul><li>that's an exciting offer!</li>
  4. <li>You must be crazy to give away freely available HTML code for free to other people who...</li><li>want to exploit it to make lots of money.</li></ul>
  5. <form><table style="margin-right:auto; margin-left:auto;"><p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p>
  6. <input type="hidden" value="entrenamientocom" name="uri"/><input type="hidden" name="loc" value="es_ES"/>
  7. <input type="submit" value="Subscribe" /></form>')

Necesito meterle esto:

<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('feedburner.google.com/fb/a/mailverify?uri=entrenamientocom', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">

y supuestamente deberia quedar así:
Código HTML:
Ver original
  1. .html('<p>Looking to setup your own pop up window?</p>
  2. <p>My free HTML code can help. By not signing up for my email newsletter, I will give you the code for free.</p>
  3. <ul><li>that's an exciting offer!</li>
  4. <li>You must be crazy to give away freely available HTML code for free to other people who...</li>
  5. <li>want to exploit it to make lots of money.</li></ul>
  6. <form><table style="margin-right:auto; margin-left:auto;"> [COLOR="Red"][SIZE="5"]Y AQUI DEBERIA IR LO DE ARRIBA[/SIZE][/COLOR]<p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p><input type="hidden" value="entrenamientocom" name="uri"/><input type="hidden" name="loc" value="es_ES"/>
  7. <input type="submit" value="Subscribe" /></form>')

Pero el caso es que me marca error de sintaxis apartir de ahi no se que hacer!
Si me puede ayudar alguien se lo agraderia mucho!
Salu2 y Grax de antemano
  #2 (permalink)  
Antiguo 01/05/2012, 14:40
Avatar de Karmac  
Fecha de Ingreso: agosto-2011
Ubicación: Bilbao
Mensajes: 196
Antigüedad: 12 años, 8 meses
Puntos: 34
Respuesta: Problema en Variable

Dentro de unas comillas (pongamos las simples ') puedes utilizar o bien el otro tipo (es decir, dobles "), o bien el mismo tipo de comillas escapadas.

'Comillas dobles " o comillas simples \'' --> Escapas con una barra invertida
"Comillas simples ' o comillas dobles \"" --> Más de lo mismo.

Espero que entiendas los ejemplos. Saludos.

Etiquetas: input, variables, formulario
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:11.