You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Allen Guo <el...@gmail.com> on 2007/08/28 07:46:22 UTC
[T5] annoying javascript problem
Hi All,
Due to the project requirement, I often add some javascript to .html
like this:
sample:
<script>
var s;
for (var i=0;i++;i < productCnt){
s += "palcehoder" + i;
}
.....
</script>
another sample
<input type="button" onclick="if(document.form1.price.value>10)
alert('you can not do this');" value="Test"/>
You know, in T5, the html file must be a strict xml file, So above
codes which cotain '>' won't be allowed in it.
How do you solve this kind of problems?
Any suggestion is welcome.
Thanks
Guoguo Long
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] annoying javascript problem
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Of course it will.
In the meantime you can use the usual workarounds can't you?
<script type="text/javascript">
// <!--
//
...
//-->
</script>
Cheers,
Nick.
Allen Guo wrote:
> I think T5 must support CDATA in stable release.
>
> Allen Guo 写道:
>> Hi All,
>>
>> Due to the project requirement, I often add some javascript to .html
>> like this:
>> sample:
>> <script>
>> var s;
>> for (var i=0;i++;i < productCnt){
>> s += "palcehoder" + i;
>> }
>> .....
>> </script>
>> another sample
>> <input type="button" onclick="if(document.form1.price.value>10)
>> alert('you can not do this');" value="Test"/>
>>
>> You know, in T5, the html file must be a strict xml file, So above
>> codes which cotain '>' won't be allowed in it.
>> How do you solve this kind of problems?
>>
>> Any suggestion is welcome.
>>
>> Thanks
>> Guoguo Long
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] annoying javascript problem
Posted by Allen Guo <el...@gmail.com>.
I think T5 must support CDATA in stable release.
Allen Guo 写道:
> Hi All,
>
> Due to the project requirement, I often add some javascript to .html
> like this:
> sample:
> <script>
> var s;
> for (var i=0;i++;i < productCnt){
> s += "palcehoder" + i;
> }
> .....
> </script>
> another sample
> <input type="button" onclick="if(document.form1.price.value>10)
> alert('you can not do this');" value="Test"/>
>
> You know, in T5, the html file must be a strict xml file, So above
> codes which cotain '>' won't be allowed in it.
> How do you solve this kind of problems?
>
> Any suggestion is welcome.
>
> Thanks
> Guoguo Long
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org