how can get telnet response from the ocx component - WeOnlyDo Discussion board

how can get telnet response from the ocx component (General questions)

by nogard, Wednesday, June 08, 2005, 07:31 (7108 days ago)

dear all:

[code]
<script for= telnetdlx event= statechange() language= JavaScript >
document.myform.status.value = telnetdlx.StateText (telnetdlx.State);

if( telnetdlx.Receive().indexOf( Username: )>0)
telnetdlx.PrintText( 1234
);}

</script>
[/code]

i use the Receive() function to get the telnet response. But it can't show the response message in the ocx,if i use the function.
if there is some other static varaible to get the response,then i can
do the interaction with client's ocx with script

thx alot!!!!!

Re: how can get telnet response from the ocx compo

by wodSupport, Wednesday, June 08, 2005, 12:53 (7107 days ago) @ nogard

Nogard,

no, I don't think wodTelnetDLX has what you need, it doesn't have the property that would hold 'accumulated' response.

But, why do you use Receive like that to get the response? Why don't you use Waitfor method - it will accumulate data internally until 'Username' is found.