Click to See Complete Forum and Search --> : XSL call to Javascript function problem


keko2005
06-12-2009, 11:01 AM
Hey guys,
I am just learning XSL and I am now trying to work with XSL and Javascript. My code works perfectly fine in FF but not in IE.

I cannot figure out what i am doing wrong and i have search all over the net without any luck.

Here is the <script> element and it's content which i am using to call/pass my values to my Javascript function which is embedded in a XSL template.

<td id='{generate-id(Ticket_Created)}'>
<script type="text/javascript">
var idss = '<xsl:value-of select="generate-id(Ticket_Created)"/>';
var cdt = '<xsl:call-template name="FormatDate"><xsl:with-param name="DateTime" select="Ticket_Created"/><xsl:with-param name="Output" select="'ShortDate'"/></xsl:call-template>';
var type = '<xsl:value-of select="ticket_type"/>';
NewSLA(idss, type, cdt);
</script>
</td>


What am i doing wrong that is making this not work for IE?

i don't think you need to see the JavaScript code as i know for a fact it works properly in IE and FF if i call it from regular HTML. I forgot to mention that my javascript code resides in the HTML file where as my XSL code reside in a separate XSL file.

Any help would be greatly appreciated and if you need more information regarding my code please let me know and i will post it.

jkmyoung
06-12-2009, 01:38 PM
What version of IE?

keko2005
06-12-2009, 03:23 PM
IE6, IE7 and IE8

All with the same results. Nothing, not even error reports.