need help in asp/javascript/vbscript imprtant
hi,
i'm trying to create a table with some data getting it from vb6 component which returning this data as recordset
first i create the table with one line which containing the header
then i access the component in asp script
the function that will create the next line a made it in Java script as following:
<script type="text/javascript">
function insRow(iRow,sText)
{
var ArrText2 = new Array
ArrText2= sText.split(",")
var x=TblDetails.insertRow(iRow)
for (i=ArrText2.length-1 ; i>=0; i --)
{
x.insertCell(0).innerText =i + "=" + ArrText2[i]
}
}
</script>
but when i want to call this function in the asp
call insRow(i2,"x,y,z")
it gives me an error:Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'insRow'
and i don't know how can i call it or what it the solution
if any one can help me in this case or give me a functon that will create table line by line with the data
please it very important i took 3 days to know and i search in the internet but i didn't find any thing
thank you