Passing DataGrid Cell Value to VbScript function

K

keys4worship

I have a datagrid that contains among other things an SSN and a button.
I have added an onclick attribute to the button that works with
vbscript to query information on 3270 Pcomm emulator. The vbscript uses
something like document.form.txtSsn.Value to grab the SSN. When the
button on the datagrid is clicked the SSN is placed in the hidden
texbox for use with the vbscript. My problem is that the button is used
to place the SSN in the textbox AND to trigger the Pcomm automation. As
a result the query is always one click behind.
The initial click SSN is blank because the function is triggered before
the texbox is updated. What is the best solution to this problem?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top