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

by nogard @, (7269 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!!!!!

locked

Re: how can get telnet response from the ocx compo

by Jasmine, (7268 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.

locked