I am working on a data view web part. I am using Java script for some of my functioning and having trouble with calling javascript function with more than one arguments while single argument function is working fine.
When i used this single argument function, it worked fine:
<script type="text/javascript">
function PrintElement(loopPosition)
{
alert("1");
}
PrintElement(<xsl:value-of select="$pos"/>);
</script>
Later on, i tried to add one more argument but it is not calling the javascript function and page is giving error on the line where function is being called.
I tried the following but no luck:
PrintElement(<xsl:value-of select="$pos"/>,<xsl:value-of select="$FPageName"/>);
PrintElement(<xsl:value-of select="$pos"/>+","+<xsl:value-of select="$FPageName"/>);
PrintElement("'"+<xsl:value-of select="$pos"/>+"'","'"+<xsl:value-of select="$FPageName"+"'"/>);
PrintElement("'"+<xsl:value-of select="$pos"/>+"','"+<xsl:value-of select="$FPageName"+"'"/>);
First and Second statementdoes not call the function and third throws an error.
Could someone please help me with the exact sysntax and elaborate a bit.