The below code is part of an ASP file. The objective is to pass some data to the unix shell script in a Apache server and after all processing it returns the message - success or failed.
'Send the Transmit values through a popup window to Apache server
<script type="text/javascript">
url = " file1.ksh data1 data2"
window.open('<%=url%>', "Transmit", "width=650,height=500,toolbar=no,resizable=yes")
</script>
'if varSuccess > 0 then
objTran.Reset(val1,val2)
'end if
The question is how to capture this return message. If the return message is 'success' then we need to call the COM function 'Reset'.
Right now, the given url opens in a pop up window and the processing takes about 15 seconds. And while the url server is still procesing, execution goes to the Reset function, which should not happen.
Can anyone suggest please how to capture the return message/text from the server please and then depending on the success execute 'Reset' function.
thanks
'Send the Transmit values through a popup window to Apache server
<script type="text/javascript">
url = " file1.ksh data1 data2"
window.open('<%=url%>', "Transmit", "width=650,height=500,toolbar=no,resizable=yes")
</script>
'if varSuccess > 0 then
objTran.Reset(val1,val2)
'end if
The question is how to capture this return message. If the return message is 'success' then we need to call the COM function 'Reset'.
Right now, the given url opens in a pop up window and the processing takes about 15 seconds. And while the url server is still procesing, execution goes to the Reset function, which should not happen.
Can anyone suggest please how to capture the return message/text from the server please and then depending on the success execute 'Reset' function.
thanks