S
stephen
Hi all,
I found a nice piece of code that helps me select a value from a datagrid
(second page) and pass the value to the calling page (first page)... but If
I need multiple values then the script fails, I am not good at scripting,
can someone please help me
this is the code:
<INPUT id=btnFind
onclick="document.getElementById('lbContractNum').innerHTML =
window.showModalDialog('FindContract.aspx?'+document.getElementById('lbContractNum').innerHTML,
'','width=300,height=300');"
type=button size=5 value=Find... name=findContract>
How can pass parameters to get multiple values using the same click event
for eg:
I want to try
<INPUT id=btnFind
onclick="document.getElementById('lbContractNum').innerHTML =
window.showModalDialog('FindContract.aspx?'+document.getElementById('lbContractNum').innerHTML,
document.getElementById('lbContractName').innerHTML =
window.showModalDialog('FindContract.aspx?'+document.getElementById('lbContractName').innerHTML
'','width=300,height=300');"
type=button size=5 value=Find... name=findContract>
I get script errors,
thanks for your help,
Stephen
I found a nice piece of code that helps me select a value from a datagrid
(second page) and pass the value to the calling page (first page)... but If
I need multiple values then the script fails, I am not good at scripting,
can someone please help me
this is the code:
<INPUT id=btnFind
onclick="document.getElementById('lbContractNum').innerHTML =
window.showModalDialog('FindContract.aspx?'+document.getElementById('lbContractNum').innerHTML,
'','width=300,height=300');"
type=button size=5 value=Find... name=findContract>
How can pass parameters to get multiple values using the same click event
for eg:
I want to try
<INPUT id=btnFind
onclick="document.getElementById('lbContractNum').innerHTML =
window.showModalDialog('FindContract.aspx?'+document.getElementById('lbContractNum').innerHTML,
document.getElementById('lbContractName').innerHTML =
window.showModalDialog('FindContract.aspx?'+document.getElementById('lbContractName').innerHTML
'','width=300,height=300');"
type=button size=5 value=Find... name=findContract>
I get script errors,
thanks for your help,
Stephen