PDA

View Full Version : open a txt-file in IE (All)


msobol
10-02-2002, 06:23 AM
My Problem: I have a html page on the internet with links to txt-files. If I click on those links, the messagebox is coming up to ask to download or open this file. Open means now, to open it in Notepad.
I would like to view the txt-file in my IE Browser.
Has anybody an idea???

Nana
10-02-2002, 06:44 AM
msobol,

Are you sure that Open means in Notepad? I frequently run into *.txt files on the IBM site giving me instructions on how to install a driver I'm about to download. When I Left click on the *.txt link, it opens as an ftp page in my browser.

Nana /images/forums/icons/smile.gif

JakeHaze
10-02-2002, 07:19 AM
How about this</font color=blue>[/b] (http://www.winguides.com/registry/display.php/1155/>[b]<font)?

msobol
10-02-2002, 10:45 PM
Yes, if I click on OPEN, the notepad (or an onther programm) opens the file. But I whant to view the file in the current Browser window

msobol
10-02-2002, 10:46 PM
JakeHaze,
I think this work! but how can I manage, that all people who work with my Webpage will get this in their registry??????

Nana
10-03-2002, 12:35 AM
msobol,

Sorry, I'm not able to give you any assistance. Jake or one of the others are far more experienced than I and may have an answer for you, so please check back here.

Nana /images/forums/icons/smile.gif

JakeHaze
10-03-2002, 03:08 AM
You can't. Nor, should you. Read this</font color=blue>[/b] (http://www.alistapart.com/stories/dao/>[b]</font). As a web developer, it is your responsibility to allow your end users to view the web's content as they choose to do so. What about security? How would you feel about a site that hacked your registry on every visit? Not a good idea, pal.

Besides, a registry entry won't do you much good on Macs or Linux boxes...

Mosaic1
10-03-2002, 07:18 AM
What you want to do should work without any kind of registry modifications. I have done it in the past. I uploaded a simple text file and created a html with a link to it . Here's a link to that html on my site. I have it set up to open in a new window. But even without that, IE opens it in the same window if you prefer to code it that way on your site. Have a look at my source. I'll leave it up there until you post back that you have looked at it.

<a target="_blank" href=http://www.geocities.com/backgammon1_2000/textfile/text.html>http://www.geocities.com/backgammon1_2000/textfile/text.html</a>

Mosaic1
10-03-2002, 07:23 AM
Would you please post a link to your site? Sorry. I just read JakeHaze's link. There must be a diference in My Browser. It works for me, but not for everybody.

<P ID="edit"><FONT class="small">Edited by Mosaic1 on 10/03/02 07:26.</FONT></P>