Re: [Xsltforms-support] Javascript Warning in IE6,7,8
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2012-10-03 19:42:28
|
Hello Javier, I have committed this patch and I would appreciate if you could confirm that it works now for you. Thank you for your feedbacks! -Alain Le 16/09/2012 20:00, Javier Díaz a écrit : > Hello, > > I hope this is useful for official version, or at least to somebody in > the same situation as us. > > Using r545 we had to do change invocation to initImpl immediatelly after > MagicSeparator comment in order to avoid a warning in IE6,7 & 8: > > @@ -330,6 +330,10 @@ > <script > id="xsltforms-generatedscript" type="text/javascript"> > <xsl:text>/* > XsltForms_MagicSeparator */ > </xsl:text> > + <xsl:text>function > </xsl:text> > + <xsl:value-of > select="$vn_pf"/> > + <xsl:text>initImpl() { > +</xsl:text> > > <xsl:text>XsltForms_globals.language = "</xsl:text> > <xsl:choose> > <xsl:when > test="$lang != ''"> > @@ -353,10 +357,6 @@ > </xsl:choose> > <xsl:text>"; > </xsl:text> > - <xsl:text>function > </xsl:text> > - <xsl:value-of > select="$vn_pf"/> > - <xsl:text>initImpl() { > -</xsl:text> > > The warning was: > > Mensaje: 'XsltForms_globals' no está definido > Línea: 4 > Carácter: 1 > Código: 0 > > With the js change all works as previously did but error doesn't appear. > > Cheers, > Javier > |