Re: Open certain local files in the browser, not in external application

Achim Schaefer <[email protected]> Fri, 19 Aug 2005 08:39:48 +0200
Newsgroups gmane.comp.mozilla.devel.unix
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Blinky the Shark wrote:

>> I have a html page with several links to some files with different names.
>> The files are all simple text files but they do not have the ".txt"
>> suffix.
>>
>> When I open the page with firefox and try to open the linked files, it
>> behaves differently depending on the suffix of the file. Some files are
>> opened directly within the browser window (e.g. a file named "X.output")
>> but for other files (e.g. "Y.log" or "Z.diff"), firefox wants to save the
>> file to disk or have an external application that opens it.
>>
>> I can change the external application, but I can not tell firefox to open
>> the files directly.
>> Note, that all the files are local files and no web-server is involved.
>>
>> How can I tell firefox to open these files directly in the browser
>> window? Can I change the behaviour for all "*.log" files, for example?
> 
> Why do you want to open all of those text files in a browser?  That is
> not a challenge; it's an honest question.

Because I just want to take a quick look at several different files.
At the moment I need to click at the link, wait for the editor to open,
often I need to resize the window before I see the content of the file. And
then I close the editor before I click at the next link.
Much quicker would be to click at the link, see the content of the file in
my browser window which doesn't need to be resized. Then, I only need to go
back (which is very quick with mouse-gestures) before I click at the next
link.

So, does anybody know how to tell firefox to open the linked files in the
browser window?

Achim