htmljava? problem
•
17 Dec 2011, 14:52
•
Journals
Im trying to load documents in html (fdp, txt and word files (docx)) in html (iframe)
php and txt are working fine, but when i put docx, its not showing anything is just downloading the file..
<iframe src="test.pdf" WIDTH="1100" HEIGHT="725"></iframe> works
<iframe src="test.txt" WIDTH="1100" HEIGHT="725"></iframe> works
<iframe src="test.docx" WIDTH="1100" HEIGHT="725"></iframe> fails
please help me :(
php and txt are working fine, but when i put docx, its not showing anything is just downloading the file..
<iframe src="test.pdf" WIDTH="1100" HEIGHT="725"></iframe> works
<iframe src="test.txt" WIDTH="1100" HEIGHT="725"></iframe> works
<iframe src="test.docx" WIDTH="1100" HEIGHT="725"></iframe> fails
please help me :(
toi même
Is the document in that folder really a docx file?
Try google docs, worked for me.
Also the code you get from google docs should explain how it should work..
First of all, doc is not standard format to display in webbrowsers. But If you installed Microsoft Office, by default your browser can use office tools (word, excel, powerpoint etc) for displaying some stuff inline (its same as viewing pdf with Acrobat in browser) by allowing browser to associate certain mime-types with office. This can also be changed in browser settings (at least FF has this kind of option). But, obviously if someone doesnt have Office or I guess If he installed browser after Office and didnt add displaying documents inline in options manually, there is no way to force them to be displayed (it will do as with every unrecognized mime-type, force download). However, as someone said, you can use google docs api to force inline viewing of your office documents.
+ the title is misleading, this has nothing to do with java