loading .doc .docx file into flex component from javascript which is called from flex actionscript

StackOverflow https://stackoverflow.com/questions/19780943

Pregunta

I can load a pdf file into a flex component by calling the following javascript from actionscript:

document.getElementById("pdfFrame").innerHTML = "<object id='pdfIFrame'    data='"+url+"'  type='application/pdf'>  </object>";

I pass this function a URL indicating the location of the pdf file which is to be loaded.

This is working fine.

Now, i want to use same method for loading .doc and .docx files, so i am changed the type to 'application/msword', which is the MIME type for Word files. I have confirmed this for my file. But the Word file is not getting loaded .

Can anybody point me in the right direction?

Thank you

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top