Andreas Hartmann wrote:
>
> Hi Frank,
>
> Frank Hamilton schrieb:
>> Hi,
>>
>> Why this javascript code not working in my jx, this is the code:
>>
>> <script type="text/javascript" >
>> <![CDATA[
>> function actualizar(){
>> var i=0;
>> for(i=0;i<=4;i++){
>
> I guess the less-than character here will be escaped as < which isn't
> recognized by the browser. You could verify this by looking at the HTML
> page source.
>
> If my guess is correct, I'd recommend to use an external JavaScript file
> instead of embedding the code. You could also try it with the latest
> trunk, it includes new versions of the HTML and XHTML serializers which
> might not show this behaviour.
>
> -- Andreas
>
>
>> alert('hola');
>> }
>> }
>> ]]>
>> </script>
>>
>>
>> <select name="selector1" onchange="actualizar()">
>> <option value="-1">Seleccionar</option>
>> </select>
>>
>> I think that the for bucle in javascript function not work, with a
>> function
>> like this:
>>
>> <script type="text/javascript" >
>> <![CDATA[
>> function actualizar(){
>> alert('Hola');
>> }
>> ]]>
>> </script>
>>
>> It´s work perfect.
>>
>> Any ideas, Thanks.
>>
>
>
> --
> Andreas Hartmann, CTO
> BeCompany GmbH
> http://www.becompany.ch
> Tel.: +41 (0) 43 818 57 01
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
Thank Andreas, it´s ok for me.
--
View this message in context:
http://www.nabble.com/JavaScript-in-jx-tp22554524p22562578.html
Sent from the Lenya - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]