473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

vbscript to javascript

Hi,plz help me to translate following VBscript to Javascript :- Set objGsmOut = CreateObject( "ActiveXperts.GsmOut" )
objGsmOut.Device = "MultiTech GSM MultiModem" ' Use MultiTech's Windows Telephony device
objGsmOut.MessageRecipient = "+31624896641" ' Recipient's mobile number
objGsmOut.MessageData = "Hello, world!" ' SMS message text
objGsmOut.EnterPin ( "1234" ) ' SIM card's PIN code
objGsmOut.Send ' Send the SMS message now
WScript.Echo "Result: " & objGsmOut.LastErrorRegardsHoe
Dec 17 '05 #1
1 2191


tnhoe wrote:

plz help me to translate following VBscript to Javascript :-

Set objGsmOut = CreateObject( "ActiveXperts.GsmOut" )
objGsmOut.Device = "MultiTech GSM MultiModem" ' Use MultiTech's Windows Telephony device
objGsmOut.MessageRecipient = "+31624896641" ' Recipient's mobile number
objGsmOut.MessageData = "Hello, world!" ' SMS message text
objGsmOut.EnterPin ( "1234" ) ' SIM card's PIN code
objGsmOut.Send ' Send the SMS message now
WScript.Echo "Result: " & objGsmOut.LastError


var objGsmOut = WScript.CreateObject( "ActiveXperts.GsmOut" );
//Use MultiTech's Windows Telephony device
objGsmOut.Device = "MultiTech GSM MultiModem";
//Recipient's mobile number
objGsmOut.MessageRecipient = "+31624896641";
objGsmOut.MessageData = "Kibology for all!"; //SMS message text
objGsmOut.EnterPin( "1234" ); // SIM card's PIN code
objGsmOut.Send(); // Send the SMS message now
WScript.Echo("Result: " + objGsmOut.LastError)

That assumes JScript executed with WSH (Windows Script Host).
And I have just tried to make sense of the provided VBScript code and
transformed that to JScript, I don't know the used object and its API at
all.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't...
29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
5
by: gpence | last post by:
!!! Newbie question warning !!! I am somewhat familiar with javascript's ability to "access" the browser's favorites list -- for example, using window.home() will take you to the default URL --...
1
by: Ian Sedwell | last post by:
Hi guys Many thanks to all who replied to my original question. Actually, it's dead easy and the way I was doing it was correct the first time. You do indeed simply call the VBScript routine...
2
by: duncan | last post by:
why does this work :- <HEAD> ...... <SCRIPT LANGUAGE="javascript"> function test() { alert("test 1") } </SCRIPT>
2
by: shookim | last post by:
I have a problem with my javascript code. The window.onload function doesn't get called when there is vbscript between the two. Here is my code which works: <script type="text/javascript">...
10
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript",...
6
by: rishabhshrivastava | last post by:
Hello All, I am using ASP.NET 2.0 and I am experiencing a problem using vbscript that is this script on client side is preventing the postback of my controls. I have a dropdownlist which is...
2
by: Beemer Biker | last post by:
I put together a few lines of vbscript so I could dump the contents of a string to my C drive. It worked fine in a small test.htm where I put the vbscript at the top of the file. It failed to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.