FrontPage 2003 Development

  • Thread starter Víctor E. Franquelo Gil
  • Start date
V

Víctor E. Franquelo Gil

Hi All.

I'm working with FrontPage 2003 and SharePoint Portal
Server 2003, creating an enterprise portal.

I've a problem calling a desktop application from a
FrontPage Web. This JavaScript works OK alone
(calling "Calculator" from Windows), but it doesn't work
inside de Web. This is de code:

function ExecCalc() {
var WshShell = WScript.CreateObject("WScript.Shell");
var ReturnCode = WshShell.AppActivate("Calculator");
if (ReturnCode == 0) {
WshShell.Run("calc", 1, false);
}
else {
WshShell.SendKeys("^+m");
}
}

The problem is an error message, just after the function
call: 'WScript' not defined. But... "The WScript object
is the root object of the Windows Script Host object
model hierarchy. It never needs to be instantiated before
invoking its properties and methods, and it is always
available from any script file" (from
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/script56/html/wsObjWScript.asp).

Anyway, I'd like to think that it's easier to do than the
JavaScript way, isn't it?.

Thanks a lot :).
 
K

Kevin Spencer

You're talking about apples and oranges here. One is a script on your local
machine which you run. The other is a script in a web browser. The browser
is much more secure, as it can host malicious scripts that hackers and other
devils put on their web sites, and you don't want their scripts to run on
your machine!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
V

Víctor E. Franquelo Gil

Yes, I Know the difference. But I must call a desktop
application from an Intranet (created with SharePoint
Portal Server). It's impossible to write a Script to do
that from a page?... Which is the easiest way?... Thanks
again.
 
K

Kevin Spencer

ActiveX control or Java Applet. Both of these are executables that run on
the client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

message Yes, I Know the difference. But I must call a desktop
application from an Intranet (created with SharePoint
Portal Server). It's impossible to write a Script to do
that from a page?... Which is the easiest way?... Thanks
again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top