By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,071 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,071 IT Pros & Developers. It's quick & easy.

How to sign a script and run in a web page

P: n/a
Roy
Maybe I am in the wrong place and doing this the wrong way... please
tell me if you think there is a better way.

I need to transfer some files from a server to the client workstation.
The transfer has to be initiated from a page served up by the web
server. This is easy enough to do with Java Script and Windows FSO
but I have to loosen up the browser security and my (military)
employer will not allow that. So, is there some way I can take this
script and sign it and the user can run it once the certificate is
accepted?

I am not resigned to using Java Script, it just seemed to be the
easiest way and works well. If it makes more sense to make an exe
with something like cpp and sign it, that's OK too. Surely there are
some tutorials on the web on how to do this, but I can't find any,
which makes me fear that it can't be done.

I could use an HTA if there is a way to initiate the HTA from the web
page and to pass it a parameter (the folder with the files - it will
vary with each transfer).

FWIW, I can create a page with links to all the files and by clicking
on them cause the 'save as' dialog to come up and let the user save
them. Problem is, sometimes there will be lots of files and I don't
want the user to have to click and save each one individually.

Any help will be greatly appreciated... TIA

Steve
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
In article <o6********************************@4ax.com>, Roy <a@b.c>
wrote:
I need to transfer some files from a server to the client workstation.
The transfer has to be initiated from a page served up by the web
server. This is easy enough to do with Java Script and Windows FSO
but I have to loosen up the browser security and my (military)
employer will not allow that. So, is there some way I can take this
script and sign it and the user can run it once the certificate is
accepted?


Maybe you can get away with the standard download. Just put all the
file you wanted downloaded in a server directory without the index.html
file. When you browse to this page, the files will be listed and your
users can download them.

The extension of the file determines how the file is processed. Here is
a link to a list of file. The files with the gz extension will be
downloaded:
http://mirrors.mix5.com/apache/ant/binaries/

Here is the html:
<A HREF="apache-ant-1.6.2-bin.tar.gz">apache-ant-1.6.2-bin.tar.gz</A>

Here is an html file that lets the user click on a button to begin a
download.

Robert

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>download</title>
<script type="text/javascript">
function downloadFile()
{
location.href = "http://mirrors.mix5.com/apache/ant/binaries/" +
"apache-ant-1.6.2-bin.tar.gz";
}
</script>
</head>
<body>
<p>Click on the button to download the file.</p>
<form>
<input type="button"
value="apache-ant-1.6.2-bin.tar.gz"
onclick="downloadFile();">
</form>
</body>
</html>

Robert
Jul 23 '05 #2

P: n/a
In article <o6********************************@4ax.com>, Roy <a@b.c>
wrote:

FWIW, I can create a page with links to all the files and by clicking
on them cause the 'save as' dialog to come up and let the user save
them. Problem is, sometimes there will be lots of files and I don't
want the user to have to click and save each one individually.


Oh, I read too quickly.
You could put the files in a zip file. The file should be automatically
expanded.

I would not be too big on having a bunch of file downloaded
automatically without my knowledge.

There are automatic file distribution system. I forget the names of
them. The idea is that you put a file on the distribution server and
the server copies the files to all the clients. Doesn't the MS file
server come with one? Doesn't the corporate edition of Norton Ghost
have one?

Robert
Jul 23 '05 #3

P: n/a
The deal is that the user selects a "package" of documents and checks
it out to the user's local workstation. Since some of these
"packages" can have quite a few files in them, the requirement is to
download all of the documents at once. The user updates them over a
period of time and then checks them back in.

I am stuck with doing this on my own... no money to spend on any third
party products, at least not at the present.

But, we do have a site license for winzip and it would be fine do use
that (or any other freebie compression tool) if I could make it
automatically decompress it on download. You mentioned that. How do
you make it automatically expand? I download zip files often and they
don't automatically expand...

Thanks a lot for the reply...

Steve
On Sun, 12 Sep 2004 05:15:08 GMT, Robert <rc*******@my-deja.com>
wrote:
In article <o6********************************@4ax.com>, Roy <a@b.c>
wrote:

FWIW, I can create a page with links to all the files and by clicking
on them cause the 'save as' dialog to come up and let the user save
them. Problem is, sometimes there will be lots of files and I don't
want the user to have to click and save each one individually.


Oh, I read too quickly.
You could put the files in a zip file. The file should be automatically
expanded.

I would not be too big on having a bunch of file downloaded
automatically without my knowledge.

There are automatic file distribution system. I forget the names of
them. The idea is that you put a file on the distribution server and
the server copies the files to all the clients. Doesn't the MS file
server come with one? Doesn't the corporate edition of Norton Ghost
have one?

Robert


Jul 23 '05 #4

P: n/a
Steve <a@b.c> wrote in message news:<rt********************************@4ax.com>. ..
But, we do have a site license for winzip and it would be fine do use
that (or any other freebie compression tool) if I could make it
automatically decompress it on download. You mentioned that. How do
you make it automatically expand? I download zip files often and they
don't automatically expand...


Looks like the Windows 98 version of IE doesn't have the concept of
Helper applications. I couldn't find them in the help. IE 5.2 on
MacOS 10.2.6 has the concept of helper applicaitons. For any mime
type, you can associate an applicaion with the type. The application
gets invoked when its mime type is downloaded. For zip, the default is
a a free decompression program.

Likewise, Firefox 0.9.3 for MacOS lets you make associations by file
type indicating what program to invoke after the download. I assume
these associations would be available on all version of Firefox.

I guess for IE on Windows that you have to download the file then
double click on the icon to run the zip program. Perhaps there is a
way to make the associations through the registery. How does IE know
to invoke word when you download a doc file anyway. More MS magic I
guess. Perhaps you can configure winzip to automtically expand the
files.
Robert
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.