|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
OT: File/Local browsing and word documents
Hi all,Hugo Ahlenius 04/09/03 06:35 A The manner in which a link with <a href="file:\\..."> will execute (whatS. Isaac Dealey 04/09/03 02:41 P You would have to run a setup program (.exe) to make sure the fileEzine 04/09/03 04:29 P It also means mucking with someone else's mime types which they may haveS. Isaac Dealey 04/09/03 08:30 P Thanks guys,Hugo Ahlenius 04/10/03 02:36 A Hi all, An offtopic thing: I have a CF site that works perfectly fine. The site features excel documents, pdf-files and word documents (doc/rtf) among other things, which are sent out nicely to the users using cfcontent, the proper MIME-type and the Attachment header (so that the documents are not opened in the browser). Now we are interested in creating a CD version of the same content, and I have succesfully downloaded everything using WinHTTrack (great piece of software). The Excel documents open fine, in the MS Excel application, and not in the browser. Word documents, on the other hand, is a whole different kind of thing. I have been trying in modifying the local source (which is all plain html after downloading) to point to either drive:\path\file.doc (both relative and absolute paths) with either target="_blank" or no target specified. With _blank a new browser (IE6sp2, it works fine in Moz though...) window opens which is totally blank and doesn't respond. With no target the same happens, but instead in the calling frame. Any tips on how to create a file:\\ link that will open an rtf/doc in the right application (MS Word). Could it be some settings on my testing machine that are non-default? Thanks for any help/input! Cheers, Hugo ------------------------------------------------------------- Hugo Ahlenius E-Mail: hugo@grida.no Project Officer Phone: +46 8 230460 UNEP GRID-Arendal Fax: +46 8 7230348 Stockholm Office Mobile: +46 733 467111 WWW: http://www.grida.no ------------------------------------------------------------- ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ The manner in which a link with <a href="file:\\..."> will execute (what application will open it) will always be os/browser specific. I don't believe there's any way to control that. CFContent works by using http-headers, but with a file:\\ link there is no http and therefore no http headers. ----- Excess quoted text cut - see Original Post for more ----- s. isaac dealey 954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to tapestry api is opensource http://www.turnkey.to/tapi certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 You would have to run a setup program (.exe) to make sure the file associations and mime types are set-up properly... Not an easy task. -Zine The manner in which a link with <a href="file:\\..."> will execute (what application will open it) will always be os/browser specific. I don't believe there's any way to control that. CFContent works by using http-headers, but with a file:\\ link there is no http and therefore no http headers. ----- Excess quoted text cut - see Original Post for more ----- s. isaac dealey 954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to tapestry api is opensource http://www.turnkey.to/tapi certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 It also means mucking with someone else's mime types which they may have intentionally set a particular way. Unless your application is asking "can we set this mime type to our reader because our reader can read this mime type"? I think trying to muck with them is probably a poor idea. For that matter I'm not even especially impressed with commercial software from major companies that change mime types on install because of the way that they assume that you want to use _their_ reader for any and every mime type they support. Apple QuickTime for instance -- I don't have a Mac -- I don't have anything against them, I just don't have one. And it irks me that any time I want to install QuickTime because I can't view a particular movie any other way that I have to weed through a list of 50+ mime types and un-check MP3 and MPEG and AVI, etc, etc... that are already associated with Winamp or Windows Media Player, etc. Now installing BigBrother Firewall Associate these file types with BigBrother? [x] ALL [x] MORE ALL [x] SOME ALL WE LEFT OUT OF MORE ALL Are you sure? Really? You're certain? I won't be able to show these file types for you!! ?? Damn... Oh... would you like me to let you know if some other program hijacks these file types from me? </rant> :) ----- Excess quoted text cut - see Original Post for more ----- s. isaac dealey 954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to tapestry api is opensource http://www.turnkey.to/tapi certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 Thanks guys, I discovered that it was just a problem with my (tweaked) setup at my workstation. It is fine if it works with the defaults/what most people use. ------------------------------------------------------------- Hugo Ahlenius E-Mail: hugo@grida.no Project Officer Phone: +46 8 230460 UNEP GRID-Arendal Fax: +46 8 7230348 Stockholm Office Mobile: +46 733 467111 WWW: http://www.grida.no ------------------------------------------------------------- | -----Original Message----- | | Sent: Wednesday, April 09, 2003 20:57 | To: CF-Talk | Subject: RE: OT: File/Local browsing and word documents | | | You would have to run a setup program (.exe) to make sure the file | associations and mime types are set-up properly... | Not an easy task. | | -Zine | | -----Original Message----- | | Sent: Wednesday, April 09, 2003 2:11 PM | To: CF-Talk | Subject: Re: OT: File/Local browsing and word documents | | | The manner in which a link with <a href="file:\\..."> will | execute (what | application will open it) will always be os/browser specific. I don't | believe there's any way to control that. CFContent works by using | http-headers, but with a file:\\ link there is no http and | therefore no http | headers. | | > Hi all, | | > An offtopic thing: | | > I have a CF site that works perfectly fine. The site | > features excel | > documents, pdf-files and word documents (doc/rtf) among | > other things, | > which are sent out nicely to the users using cfcontent, | > the proper | > MIME-type and the Attachment header (so that the documents | > are not opened | > in the browser). | | > Now we are interested in creating a CD version of the same | > content, and I | > have succesfully downloaded everything using WinHTTrack | > (great piece of | > software). The Excel documents open fine, in the MS Excel | > application, and | > not in the browser. Word documents, on the other hand, is | > a whole | > different kind of thing. | | > I have been trying in modifying the local source (which is | > all plain html | > after downloading) to point to either drive:\path\file.doc | > (both relative | > and absolute paths) with either target="_blank" or no | > target specified. | > With _blank a new browser (IE6sp2, it works fine in Moz | > though...) window | > opens which is totally blank and doesn't respond. With no | > target the same | > happens, but instead in the calling frame. | | > Any tips on how to create a file:\\ link that will open an | > rtf/doc in the | > right application (MS Word). Could it be some settings on | > my testing | > machine that are non-default? | | > Thanks for any help/input! | | > Cheers, | > Hugo | | | | | > ---------------------------------------------------------- | > --- | > Hugo Ahlenius E-Mail: | > hugo@grida.no | > Project Officer Phone: +46 8 | > 230460 | > UNEP GRID-Arendal Fax: +46 8 | > 7230348 | > Stockholm Office Mobile: +46 733 | > 467111 | > WWW: | > http://www.grida.no | > ---------------------------------------------------------- | > --- | | | > ########################################### | | > This message has been scanned by F-Secure Anti-Virus for | > Microsoft | > Exchange. | > For more information, connect to http://www.F-Secure.com/ | | > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | > ~~~~~~~~~~~| | > Archives: | > http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 | > Subscription: http://www.houseoffusion.com/cf_lists/index. | > cfm?method=subscribe&forumid=4 | > FAQ: http://www.thenetprofits.co.uk/coldfusion/faq | > Get the mailserver that powers this list at | > http://www.coolfusion.com | | > Unsubscribe: http://www.houseoffusion.com/cf_lists/uns > ubscribe.cfm?user=633.558.4 s. isaac dealey 954-776-0046 new epoch http://www.turnkey.to lead architect, tapestry cms http://products.turnkey.to tapestry api is opensource http://www.turnkey.to/tapi certified advanced coldfusion 5 developer http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
|
June 20, 2013
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||