tsumji,
I did change that line, but I still get the same error message. In addition I get another message:
Line 46 Char 5 telnetdlx is not declared
<script type = "text/javascript">
dim telnetdlx;
with (telnetdlx)
{
TerminalEmulation = 1; //use VT1000 Emulation
AutoSize = true...
I have moved this post to the javascript forum.
Trollacious: When I open the webpage in FireFox, it opens fine, but the ActiveX component doesn't function. FireFox opens a 2nd window and the error message is : cannot find file : c:\
Hello,
I keep getting the error "Object Expected: Line 28 Char 1". That line is my button line ("BUTTON ONCLICK= "Connect") I've checked everything I could think of, but it's still not rendering correctly. I need some more eyes to see what I don't
<!-- Title: Reset SX User Intranet Page...
Hello,
I keep getting the error "Object Expected: Line 28 Char 1". That line is my button line ("BUTTON ONCLICK= "Connect") I've checked everything I could think of, but it's still not rendering correctly. I need some more eyes to see what I don't
<!-- Title: Reset SX User Intranet Page...
OK, so the more I thought about this the more it seemed there had to be a better way to parse this out without using the bold. Well ta-dah! I found it, but still unsure how to split it
Each time the word SPECIFICATIONS appears I want to create a new cell
so I was thinking something like
Sub...
Hello,
I have a name of a product in bold, a description, and a price. The name and description are in teh same column, but in different cells IE:
Name Price
ElevatorELE50-450Basic 4.495
Simpleandrobuststraightelevator
toputtheproduceintothedosinghopperontop...
I am using active socket here is the function:
function Receive ()
{
while ( objSocket.HasData () == -1 )
{
textReceive.value = textReceive.value + objSocket.ReceiveString ();
}
setTimeout("Receive()",1000);
}
function Init ()
{
Receive...
Yes that is what I started with and I still had the square in front, that's why I tried the escape character. I also tried to use the HTML character name(because my page is HTML with a javascript), but that didn't work either.
Does anyone know how to pass an underscore to a telnet session? right now I have in my code:
<!--textResult.value = ("SHUT\_USER " ) + (textCoNo.value)+ (textUInit.value);-->
but it displays on the telnet sessions as :
(volmrs)# SHUT _USER
Well thanks for the reply, I have started to build the ASP application, this is actually a rewrite of an existing intranet site that was quite poor. I don't want to see a telnet window when I am running these commands during production, but I do want to see what is going on during testing. Now...
Well, thanks for the help but I just don't get what I am doing here at all. I thought this was going to be a simple little task, just code a bit of HTML and open a cmd prompt, then I start delving into the w3socket stuff and find out I can't script to a telnet window. So I am just to frustated...
Yep, I fixed that back to Socket.TCP, and now I don't get the error, but I don't see a cmd window open so how do I know if the command executed correctly?
I dunno, I was following the readme.txt that downloaded with the w3socket app. This is the first time I have had to use this, so I don't quite know what I am doing. If I have my syntax wrong, can you point me in the right direction.
I changed as you suggested:
<SCRIPT LANGUAGE="vbscript">
OPTION EXPLICIT
Sub cmdReset_OnClick
Dim txtUserID
Dim txtCoNo
Dim oSocket, iErr, sSocketText
sSocketText = ""
Set oSocket = CreateObject("Scripting.FileSystemObject")
oSocket.Host = "volmrs"
On Error Resume Next
oSocket.Open
iErr =...
I have downloaded the w3sockets, but I am getting an error in my sleep command. Here is my w3socket code
Sub ResetUser
Dim oSocket, iErr, sSocketText
sSocketText = ""
Set oSocket = CreateObject("Socket.TCP")
oSocket.DoTelnetEmulation = True
oSocket.TelnetEmulation = "TTY"
oSocket.Host =...
PHV,
I changed the code as you suggested, however it still 'hangs' on the login prompt as before.
Updated code:
Sub cmdReset_OnClick
Dim txtUserID
Dim txtCoNo
Dim objShell
txtUserID = frmForm1.txtUserID.Value
txtCoNo= frmForm1.txtUserID.Value
Set objShell = CreateObject("wscript.Shell")...
Hi,
I am trying to open a cmd prompt from an HTML page. I want to be able to log in to a telnet session, pass two variables from textboxes on the HTML form and execute a command. So far this is what I have:
<HTML>
<HEAD>
<TITLE>
Reset SX User
</TITLE>
<SCRIPT LANGUAGE="vbscript">
OPTION...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.