how to set iframe src to local file
I have an iframe in my HTML, where i would like to play mpeg/mpg files from local folder, but i can't load the video into the iframe. when i set src="http://www.google.com", it is displayed in the iframe, but if i try src="file:///C:/Documents%20and%20Settings/jgabotero/Desktop/sample.jpg" it doesn't disp开发者_开发百科lay the image.
How can i set the src property of iframe to point to local files, specially the ones stored in IsolatedStorage?
Thank you in advance.
-- julie
i think you can't display files in iframe form your computer using file:// its a security issue.
I also think you can't display images in iframe, ue an html or ohp page, to do this, so put the image in a html file, and link the iframe to this html file.
精彩评论