ibrahimkhans
Programmer
I have two js files js1 and js2..
In js1 , i have a method defined
function allowAlphaNumKey(..){ .. }
In js2, i have the following code:
function addProjectRow(tBody)
{
var Cell1 = '<TD nowrap width="20%">
<input type="text" name="txtName'+rowNumber+'" value="" onBlur = "allowAlphaNumKey(\"Project Number\",txtName)">
</TD>';
}
But it's showing script error...
Both the .js files are included in the jsp.. and in this jsp i have the following line..
<td nowrap='nowrap' width="10%" align='center'>
<a href="javascript:addProjectRow();" border="0" align="center">
Add Row
</a>
which calls addProjectRow() in js2 and from this js2's addProjectRow() method, iam trying to call allowAlphaNumKey(..) but getting script error..
Is it possible to call one js method from another js ???
In js1 , i have a method defined
function allowAlphaNumKey(..){ .. }
In js2, i have the following code:
function addProjectRow(tBody)
{
var Cell1 = '<TD nowrap width="20%">
<input type="text" name="txtName'+rowNumber+'" value="" onBlur = "allowAlphaNumKey(\"Project Number\",txtName)">
</TD>';
}
But it's showing script error...
Both the .js files are included in the jsp.. and in this jsp i have the following line..
<td nowrap='nowrap' width="10%" align='center'>
<a href="javascript:addProjectRow();" border="0" align="center">
Add Row
</a>
which calls addProjectRow() in js2 and from this js2's addProjectRow() method, iam trying to call allowAlphaNumKey(..) but getting script error..
Is it possible to call one js method from another js ???