| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| zdr -
 
 
 Joined: 24 Mar 2004
 Posts: 2
 
 
 | 
			
				|  Posted: Thu Mar 25, 2004 12:06 pm    Post subject: html application |   |  
				| 
 |  
				| Hi I have just installed abyss webserver.Very user friendly.But I have a problem.I have set mime type for hta files as application/hta.However when ever I browse to the hta file, instead of it being opened  in the browser like html file,I get a download prompt.What am I doing wrong.Please guide me.I want hta to be opened in a separate window outside of the browser instead of being dloaded.
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 | 
			
				|  Posted: Thu Mar 25, 2004 1:53 pm    Post subject: |   |  
				| 
 |  
				| You wrote the mime type setting wrong 
 Use: text/html   html htm
 
 Edit: What is a hta file ?
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| Anonymoose -
 
 
 Joined: 09 Sep 2003
 Posts: 2192
 
 
 | 
			
				|  Posted: Thu Mar 25, 2004 3:54 pm    Post subject: |   |  
				| 
 |  
				|  	  | TRUSTpunk wrote: |  	  | You wrote the mime type setting wrong 
 Use: text/html   html htm
 
 Edit: What is a hta file ?
 | 
 
 Surely you need to read up on what a hta file is before you decide he has the mime type wrong ?  Just because it sounds a bit like htm, doesn't mean it is...
 
 Have a read of http://www.hyperwrite.com.au/features/html_applications.htm
 
 I'm pretty sure if you link to a HTA it will always ask the user if they want to open the file from the current location or download it.  If they open it from the current location it will run the HTA - there's no way to get it to run automatically, that would be a nightmare for net security!
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 | 
			
				|  Posted: Thu Mar 25, 2004 5:47 pm    Post subject: |   |  
				| 
 |  
				| Wait , I can't believe I forgot about a hta file , its like a offline website that people allow for download.
 
 Thanks for refreshing my memory lol !
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| Anonymoose -
 
 
 Joined: 09 Sep 2003
 Posts: 2192
 
 
 | 
			
				|  Posted: Fri Mar 26, 2004 12:18 am    Post subject: |   |  
				| 
 |  
				|  	  | TRUSTpunk wrote: |  	  | Wait , I can't believe I forgot about a hta file , its like a offline website that people allow for download.
 
 Thanks for refreshing my memory lol !
 | 
 
 HTA is executable code, MHT is a web archive ?  Looks like we need some more refreshing  :lol:
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 | 
			
				|  Posted: Fri Mar 26, 2004 12:22 am    Post subject: |   |  
				| 
 |  
				| I know its a application but its still a web page inside that application am I right or wrong ?
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| iNaNimAtE -
 
 
 Joined: 05 Nov 2003
 Posts: 2381
 Location: Everywhere you're not.
 
 | 
			
				|  Posted: Fri Mar 26, 2004 2:47 am    Post subject: |   |  
				| 
 |  
				| And I know neither HTA or MHT; so I need a crash course. I guess I'll have to Google it. Is HTA used for intranets? _________________
 Bienvenidos!
 |  | 
	
		| Back to top |                | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Fri Mar 26, 2004 2:15 pm    Post subject: Re: html application |   |  
				| 
 |  
				| zdr, 
 There is nothing wrong with this behavior since HTA files are meant to run as an application on your computer (and not on the web site or the browser).
 
 For those who want to test HTA. Open notepad, copy and paste the following code:
 
 
  	  | Code: |  	  | <HTML> <HEAD>
 <TITLE>HTA Test</TITLE>
 <HTA:APPLICATION ID="MyTestApp"
 APPLICATIONNAME="test"
 BORDER="sunken"
 CAPTION="yes"
 SHOWINTASKBAR="yes"
 SINGLEINSTANCE="yes"
 SYSMENU="no"
 WINDOWSTATE="normal">
 </HEAD>
 <BODY>
 My 1st HTA application. Press Alt+F4 to close it.
 </BODY>
 </HTML>
 | 
 
 Save it as test.hta and double click on the file. More information about HTA is available in http://msdn.microsoft.com .
 _________________
 Support Team
 Aprelium - http://www.aprelium.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| iNaNimAtE -
 
 
 Joined: 05 Nov 2003
 Posts: 2381
 Location: Everywhere you're not.
 
 | 
			
				|  Posted: Sat Mar 27, 2004 1:43 am    Post subject: |   |  
				| 
 |  
				| Oh... wow... that is the coolest thing I have ever seen. Someone talked about security problems if it were automatically ran. How would it be a security issue? _________________
 Bienvenidos!
 |  | 
	
		| Back to top |                | 
	
		|  | 
	
		| zdr -
 
 
 Joined: 24 Mar 2004
 Posts: 2
 
 
 | 
			
				|  Posted: Sat Mar 27, 2004 12:04 pm    Post subject: |   |  
				| 
 |  
				| Everybody thank you so much for your feed back. 
 Regards.
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Sun Mar 28, 2004 4:13 pm    Post subject: |   |  
				| 
 |  
				| iNaNimAtE, 
 Someone can put in the hta code a javascript that can do something bad to your computer. But that's very hard to do since javascript is designed to not allow such things (except when there are flaws or bugs in it).
 _________________
 Support Team
 Aprelium - http://www.aprelium.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| goose -
 
 
 Joined: 17 Sep 2002
 Posts: 608
 Location: The Land Of OZ! come here toto!
 
 | 
			
				|  Posted: Sun Mar 28, 2004 6:11 pm    Post subject: |   |  
				| 
 |  
				| hmm interesting! mht (looks like htm jumbled! 8) _________________
 living in an armish paradise.....no gates here!
 
 mawuahahaha :)
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| iNaNimAtE -
 
 
 Joined: 05 Nov 2003
 Posts: 2381
 Location: Everywhere you're not.
 
 | 
			
				|  Posted: Sun Mar 28, 2004 7:37 pm    Post subject: |   |  
				| 
 |  
				| Oh... I never thought of that. I wonder if you could hide a little "format c:" in there... hehe... _________________
 Bienvenidos!
 |  | 
	
		| Back to top |                | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 | 
			
				|  Posted: Mon Mar 29, 2004 12:48 am    Post subject: |   |  
				| 
 |  
				| Every since I format my brother's computer from that bad OS WindowsME , Users have been talking
 about the command format c: , you can stop now !
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| iNaNimAtE -
 
 
 Joined: 05 Nov 2003
 Posts: 2381
 Location: Everywhere you're not.
 
 | 
			
				|  Posted: Mon Mar 29, 2004 1:16 am    Post subject: |   |  
				| 
 |  
				| Sorry... "format c:" is an ongoing joke I used to talk about with a lot of people, and it just develops from there. _________________
 Bienvenidos!
 |  | 
	
		| Back to top |                | 
	
		|  | 
	
		|  |