Solved

CGI question

Posted on 1997-06-26
1
234 Views
Last Modified: 2013-12-25
I have Microsoft excel plugins. Then It is possible to view Excel files in browser.
But I want to excel files to be viewed in browser or to
be launched by ,for instance, EXCEL which is registerd in netscape(options->helpers) in netscape menu, Selectivley.
Is it possible ? or if it is not possble
Is a way to launch a specific application in client?
Sorry, I am not sure which topic area is fitted to above quetion, CGI or javascript.
Thaks in advance.  
0
Comment
Question by:molla051997
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
mkornell earned 0 total points
ID: 1828580
No, CGI is the right area.

When you send the file to the client, you don't have control over what happens to it when it gets there.  What you can do is tell the client what kind of file it is, by using the "Content-type" HTTP header.  For example, HTML files use a header of "Content-type: text/html".  GIF files use a header of "Content-type: image/gif" and Word files use a header of "Content-type: application/msword".

You can have a CGI script set this header explicitly when serving a request, or you can configure your web server to map file extensions to headers (typically, this is set in the mime.types configuration file).

However, it is totally up to the client as to what to do with the file when it gets it.  It looks at the Content-type header (or, in IE's case, the file extension) and figures out what kind of file it is.  Then, its configuration (via options->helpers or otherwise) tells it what application to send the file to.

Netscape calls that its helper list.  IE actually uses the system-wide file type configuration.  For example, I use IE, and I've got my system configured to open .txt files with WordPad.  Whenever I get a .txt file through IE, WordPad gets openend and my selection is displayed.

The web server doesn't have any control over what I do with the text file.  It sends me the file, tells me it is a text file, and I do with it what I please.  The server cannot tell me to open it with (say...) Notepad.

I don't know it that will let you do what you want.  If you configure your web server to send the right Content-type header for a file, the client can be configured to do something with the file.  But the client configuration is under control of the client, not the server.

HTH,
--mark;
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question