psi
unread,Dec 2, 2010, 8:37:44 PM12/2/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Java2Script
i noticed that saving the generated web page, breaks it, in chrome
(but not firefox)
whats happening is that the launcher line;
<a class="alaa" title="Launch first.HelloWorld"
href="javascript:if(a='first.HelloWorld@bin/',r=["hello"],window['ClazzLoader']!
=null)$w$(a,r);else{var
d=document,t='onreadystatechange',x=d.createElement('SCRIPT'),f=function()
{var s=this.readyState;if(s==null||s=='loaded'||s=='complete'){$w$
(a,r);}};x.src='j2slib/j2slib.z.js';(typeof x[t]=='undefined')?
x.onload=f:x[t]=f;d.getElementsByTagName('HEAD')
[0].appendChild(x);void(0);}"><span class="alaa-icon"></
span>first.HelloWorld</a>
gets saved as;
<a class="alaa" title="Launch first.HelloWorld"
href="javascript:if(a='first.HelloWorld@bin/',r=["hello"],window['ClazzLoader']!
=null)$w$(a,r);else{var
d=document,t='onreadystatechange',x=d.createElement('SCRIPT'),f=function()
{var s=this.readyState;if(s==null||s=='loaded'||s=='complete'){$w$
(a,r);}};x.src='j2slib/j2slib.z.js';(typeof x[t]=='undefined')?
x.onload=f:x[t]=f;d.getElementsByTagName('HEAD')
[0].appendChild(x);void(0);}"><span class="alaa-icon"></
span>first.HelloWorld</a>
ie. the " entity's gets saved as " (double quote) by chrome, and
the line now is terminated early.
simon.