473,378 Members | 1,456 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,378 software developers and data experts.

How to sign a script and run in a web page

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
4 1526
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: cooldv | last post by:
i know how to replace the sign " when SUBMITTING a form in asp by this code: message = Replace(usermessage, "'", "''"). My problem is DISPLAYING data in an asp FORM, from an an access database,...
4
by: ben | last post by:
Hi all, I have a simple PHP page that takes values from a form and puts them in a database (MySQL). The code is in a file test.php, which I have typed in at the bottom of this post (please...
0
by: Sarah Brian [MSFT] | last post by:
Hello there, VS .NET 2002 SP1 Beta is almost ready for testing. If you are interested in participating in this Beta, we need you to sign up and fill out a nomination form. How to sign up for...
0
by: Adam Knight | last post by:
Hi all, I have a logout page that contains among other things a header user control. This control displays the required navigation based upon whether the user is logged in or not. What i am...
7
by: kingski | last post by:
Any idea about this ? http://www.developerfusion.co.uk/forums/thread/114379/#114379 "Can any one help me as i am building a shopping cart and it supports multiple currencies but while sending...
1
by: qwerty | last post by:
My end goal is to have a script that takes user input from one pageA, submits to pageB which then displays the parameter values entered on PageA. My problem is that the values are being displayed...
3
by: Jimmy | last post by:
I'm trying to find a website that does the following: 1. Signs you up to a second site under a different primary domain (i.e. as a result of a checkout or something). The username and password may...
0
by: asmx126453 | last post by:
Hey mensen I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it. Its about this i have a DotNet project that alrydi is online and working for...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.