htmljava? problem

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 :(
Comments
14
Im trying to load documents in fdp

toi même
:DD file de pute!
Parent
Did you try that in diffrent browsers?
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..
browsers cannot display docx files, you need ms office to view those
oke, will make all 100+ docx files to pdf than :(
Parent
or convert .doc to .html with some tool.
Parent
insert a google docs iframe instead...
u so stupid
Maybe you should study more before you try smth...
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.
iframes are evil

+ the title is misleading, this has nothing to do with java
your browser doesnt have a reader for docx and therefore cannot display it, and i doubt you want to assume that your visitor has some speacil docx reader plugin! docx is a special document type not a plaintext document that you can read just like that.
Back to top