indupriya9
Programmer
Hi everyone
I have a code that works in IE but not in Firefox.
Here is the code I have in an xsl document that is refereed to by an asp document.
The function is called below
<input type="button" src="../images/add.gif" script="javascript" Value="Add to Order" class="chartButt" >
<xsl:attribute name="name">O__<xsl:number value="position()" format="1" /></xsl:attribute>
<xsl:attribute name="onclick">addtoorderform('<xsl:value-of select="rId" />','<xsl:value-of select="Code_" />','<xsl:value-of select="Product_Name" />','<xsl:value-of select="Price" />','<xsl:number value="position()" format="1" />')</xsl:attribute>
</input>
The error I see in Firefox is :
nX has no properties in Line 9
Can somebody please let me know how this can be fixed
Thanks in advance
I have a code that works in IE but not in Firefox.
Here is the code I have in an xsl document that is refereed to by an asp document.
Code:
function addtoorderform(rid,prodId,proname,UnitPrice,no)
{
var nX;
var Qty;
nX=eval("document.getElementById('txtQty" + no +"')");
alert(nX.value);
Qty=nX.value;
if(nX.disabled!=true)
{window.opener.popSetTicker(rid,prodId,proname,UnitPrice,Qty);}
nX.disabled=true
}
The function is called below
<input type="button" src="../images/add.gif" script="javascript" Value="Add to Order" class="chartButt" >
<xsl:attribute name="name">O__<xsl:number value="position()" format="1" /></xsl:attribute>
<xsl:attribute name="onclick">addtoorderform('<xsl:value-of select="rId" />','<xsl:value-of select="Code_" />','<xsl:value-of select="Product_Name" />','<xsl:value-of select="Price" />','<xsl:number value="position()" format="1" />')</xsl:attribute>
</input>
The error I see in Firefox is :
nX has no properties in Line 9
Can somebody please let me know how this can be fixed
Thanks in advance