Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML File Must Open In IE Only (double-click etc) any ideas? 1

Status
Not open for further replies.

easonc52

Technical User
Apr 21, 2001
14
US
Thanks in advance if you can assist me,

My project works fine in IE5.5, but gives nothing in NS4.7 (no error, just a blank page (these are what I have at work and home (NS at home only for testing purposes (no offense intended to NS people)))).

I want my users to not have to worry about what browser they have to use (at work the default is currently NS), so I prefer that the file automatically open in IE (if possible).

Any ideas?

Thanks,

Chuck "Uh, honey, a P5 with a 20" monitor is perfect for email"
 
i think file types are set on each machine.

might be able to do something with MIME. any MIME masters out there? Dean Owen
 
I have seen similar problems with your exact set up
(IE & NN) I found that correcting a code error will bring back NN to life
when building I always shif in beetween resolution
NN & IE
sometimes what works with IE does not in NN environment
this is why the guys at the W3c are putting together sets of rules and try to get all browsers spousing the rules
we are very close with last XML resolutions

if not confidential could you post code sampling
 
give the HTM/HTML files your own file extension (I.E *.e52) then create a new file type in Windows of .e52 files which use IE to open them up. IE will interpret the HTML in the new filenames fine.

If you don't know how to do this come back here and I'll give you a few tips. Klae

You're only as good as your last answer!
 
Thanks all for the responses,

QuietDean: the code is a derivitive of a Mailto script I changed to use with AIM (aol instant messenger) - works fine in IE but not NS. Opens the AIM window, sending to the correct person, and populates the message area with a greeting that lets the individual know who you are (from a form variable that lets a person design their own greeting (AIM names can be a bit criptic :))) - this is for a work application where time is wasted when you AIM someone and they ask 'who is this?'.

keypounder: I had a hellacious time finding some Mailto code (that will send a variable into the body) I could convert to work with the AIM message part via a variable, I'll post the code after responding to Klae :)

Klae: I'm very interested in the concept you're speaking of, and I don't know how (I'll stick to this post since there's no other response in the other post (wasn't sure where the question might apply)).

Following is the code that sends a variable's content into the AIM meassage part in IE, but the whole thing does nothing in NS (not even an error (the button format is for testing purposes)):

<html>
<title>Some Title</title>
<head>

<script language=&quot;JavaScript&quot;>
<!-- hide me

function popupMessage() {
// SET MESSAGE VALUES
var goim = &quot;goim&quot;
var screenname = &quot;easonc52nc&quot;;
var message =
&quot;from%20[Chuck%20-%20ext/55502%20-%20dsk/246]%20%20&quot;;

// BUILD AIM MESSAGE COMPONENTS
var doc = &quot;aim:&quot; + goim +
&quot;?screenname=&quot; + screenname +
&quot;&message=&quot; + escape(message);

// POP UP AIM MESSAGE WINDOW
window.location = doc;
}
// show me -->
</script>
</head>

<body>

<FORM>
<INPUT TYPE=&quot;button&quot; NAME=&quot;Test&quot; Value=&quot;Test AIMto: URL&quot; onClick=&quot;popupMessage()&quot;>
</FORM>

</body>
</html>

Thanks again :),

Chuck &quot;Uh, honey, a P5 with a 20&quot; monitor is perfect for email&quot;
 
To create file types for your IE specific code while maintaining Netscape as the default Internet Browser goes like this...

1. rename one your IE html files as &quot;test.e52&quot; for now for example reasons.

2. Now open up Explorer and eith go to View | Folder Options or Tools | Folder Options.

3. In there click on &quot;file types&quot; tab.

4. Click on the &quot;New Type...&quot; button.

5. In the &quot;Description of Type&quot; box Enter the text - &quot;IE Internet File&quot;.

6. In the &quot;default extension&quot; box enter the text - &quot;.e52&quot;

7. Select &quot;text/HTML&quot; from the Content type (MIME) drop down menu.

8. In the &quot;default extension for Content type&quot; drop-down box select &quot;.html&quot;

9. Click the &quot;New&quot; button.

10. In the &quot;Action&quot; box type &quot;Open&quot;.

11. In the &quot;Application Used to perform action&quot; box browse to IExplore.exe (I.E. &quot;C:\Program Files\Internet Explorer\Iexplore.exe&quot;).

12. at the end of this newly created line of text in the current box add the text including the quotation marks...
&quot;%1&quot;.

13. Click OK, then click Close and Close again.

14 test out by (double)clicking your test.e52 file
Klae

You're only as good as your last answer!
 
Thank you Klae,

My default at home is IE so I tested one with NS, and it did open with Netscape (although it wouldn't let me put the %1 with or without quotes (but hey, it worked)).

Thanks again :)

Chuck &quot;Uh, honey, a P5 with a 20&quot; monitor is perfect for email&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top