[Xsltforms-support] Javascript Warning in IE6,7,8
Brought to you by:
alain-couthures
From: Javier D. <jd...@tc...> - 2012-09-16 18:00:46
|
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 ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ |