Loading file content in IFRAME

M

Mani

I have a file browse dialog and an IFRAME on my web page. User will
select an RTF file using the file browse dialog and I need to load the
contents of that file in IFRAME so that the user could edit the same.

Any ideas how do I populate the contents of a file into IFRAME?

Regards
Mani
 
R

Randy Webb

Mani said the following on 12/26/2006 3:19 PM:
I have a file browse dialog and an IFRAME on my web page. User will
select an RTF file using the file browse dialog and I need to load the
contents of that file in IFRAME so that the user could edit the same.

Any ideas how do I populate the contents of a file into IFRAME?

Unless the page is being run locally you are going to run into a
security issue by trying to load a file:// protocol into an IFrame
running from an http:// protocol.
 
A

ASM

Mani a écrit :
I have a file browse dialog and an IFRAME on my web page. User will
select an RTF file using the file browse dialog and I need to load the
contents of that file in IFRAME so that the user could edit the same.

Any ideas how do I populate the contents of a file into IFRAME?

<a href="file_1.rtf" target="myIframe">file 1</a>
<iframe name="myIframe" ... ></iframe>

Not possible using tag 'input type=file' to display a file from user's
DD if your page is on a server (reason of security).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top