News:

Wondering if this will always be free?  See why free is better.

Main Menu

Why this? (ajax)

Started by [darksteel], May 15, 2006, 06:27:50 PM

Previous topic - Next topic

[darksteel]

http://www.easycreations.org/ECBook/index.php

click in the message with smileys or tags and see the problem...

darksteel-



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Rudolf

document.getElementById("input_"+elemento).focus();
There is a problem with this code, the "input_"+elemento element doesn't exists.
Here is the table code after clicking on it. It' pretty messy.
<td class="tablemenu" bgcolor="#ebebeb">
    <div onclick="creaInput('3')" id="fila_3">
       <input onblur="cargaDatos('3')" value="texto a modificar que bkn &lt;img src=" themes/smileys/tongue.gif=""> permitiendo smileys y tags" id='input_3' type='text' class='form'&gt;
     </div>
     <div class="advertencia" id="error">El texto ingresado contiene caracteres inválidos</div>
</td>


Probably it's that you're not escaping the " in:
fila.innerHTML="<input onBlur=\"cargaDatos('"+elemento+"')\" value=\""+fila.innerHTML+"\" id='input_"+elemento+"' type='text' class='form'>";

When you have a smiley the fila.innerHTML initially contains "s, for the img tag properties.
Try this instead:
fila.innerHTML='<input onBlur="cargaDatos(\"'+elemento+'\")" value=\"'+fila.innerHTML+'" id="input_'+elemento+'" type="text" class="form">';
Rudolf
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

[darksteel]

I tri it but doesn't work. thaks for your help :).

darksteel-



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Advertisement: