You are here: Re: Iframe's src attribute « HTML « IT news, forums, messages
Re: Iframe's src attribute

Posted by Dylan Parry on 01/17/07 09:09

Santel wrote:

> Only when I place the txt file inside my application directory, it
> works. Is this not possible to give cross-domain src in frames?

Completely possible, but in your case you were referencing a file on
your local system via an absolute URL (ie. c:\), and due to security
settings in your browser you aren't able to do this. Otherwise any
website could load the contents of any file on your system into an
iframe, access it with Javascript and send the contents on to a
malicious website. This would be a bad thing!

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

Programming, n: A pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация