This has nothing to do with dojo,
what IE version are you using, the javascrt initialization
as well as the generated code is perfectly compliant.

html 4.01 transitional, strict:
<script type="text/javascript">
<!--
//-->
</script>

or
<script type="text/javascript">

</script>

xhmtl transitional:
<script type="text/javascript">
<!--
//-->
</script>
or
<script type="text/javascript">
<!--
-->
</script>

xmhtl normal
<script type="text/javascript">
<!--
//-->
</script>
or
<script type="text/javascript">
<![CDATA[
]]>
</script>


I dont know what the situation is, but all current and most last gen
browsers as is are compliant with that, older browser versions may choke
on this (ie4 maybe)




Igor devor schrieb:
> Hi,
>  
>     I have include some dojo in jsf page, an use some ajax.
>     But in internet explorer i have an error after dojo load an page : 
>     Error running scripts from content:[object Error].
>     
>     I serach and i find why :
>  
>     MyFace generate this javascript : 
>  
> <script type="text/javascript"><!--
> function getScrolling() {
>     var x = 0; var y = 0;
>     if (self.pageXOffset || self.pageYOffset) {
>         x = self.pageXOffset;
>         y = self.pageYOffset;
> 
>         (....)
>  
> or this :
>  
> <script type="text/javascript"><!--
> function clear_floatform() {
>   var f = document.forms['floatform'];
>   f.elements['floatform:_link_hidden_'].value='';
>   f.target='';
> }
> (...)
>  
>  
>  And the error happend because the <!-- start tag is not preceded by
> javascript comment // 
> 
> So, how can i change this :
> <script type="text/javascript"><!--
> 
> By :
> <script type="text/javascript">//<!--
>  
> Or perhaps disable javascript generation only for this page.
>  
> Thanks.
> Igor
> 
> 
> 
> 

Reply via email to