Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-13-2008, 09:17 AM
morass morass is offline
Registered User
 
Join Date: May 2008
Posts: 3
alert in JScript

Code:
#$language="JScript"
#$interface="1.0"

function main()
{
    alert("da")
}
Above is a quite simple script, when I run it, there would be a prompt says "Microsoft JScript runtime error".

Is there an equivalence of "MsgBox" in JScript?

Thanks for any reply.
Reply With Quote
  #2  
Old 09-15-2008, 09:57 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi Morass,

It appears from a quick web search that jscript doesn't have built-in message box functionality.

The easiest way to create message box functionality from within SecureCRT would be to use the built-in 'Dialog' object.

An example of this would be:

Code:
crt.Dialog.MessageBox("Da")
More information on this can be found in Help--> Help Topics--> ActiveX Scripting--> Script Objects Reference--> Dialog Object

Does this information help out?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 09-15-2008, 10:25 PM
morass morass is offline
Registered User
 
Join Date: May 2008
Posts: 3
Yes, thank you for your answer.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:48 PM.