Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CGI question

Posted on 1997-06-26
1
Medium Priority
?
238 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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).

670 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