Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2006, 11:32 PM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default How to access innerHTML from iFrame

Hi guys,

I have a little assignment of 'crawler' sort of functionality where there's a website have numerous email addresses and i have to grab them using just php and javascript. I need it to be done on very urgent basis. I have used an IFrame in my webpage and assigend the external url to its src attribute. But whenever i try to get the document object under this iFrame i see 'Access is denied' message from the browser. Although i can get document contents if i set src to any page from my localhost. Is it mpossible to get document object contents from any external domain? if yes, then please help me.


Can anybody help me out.


thankyou






BaburMan
__________________
BaburMan
 
Old December 28th, 2006, 02:13 PM
Registered User
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

"For security reasons, JavaScript does not allow an unsigned script in one window or frame to read the properties of another window or frame unless both windows are displaying documents that came from the same web server." - David Flannigan, JavaScript - the Definitive Guide (3rd Edition)






Similar Threads
Thread Thread Starter Forum Replies Last Post
values from one iframe to another iframe URGENT raaj Beginning PHP 2 February 27th, 2007 12:19 PM
abusing innerHTML ophillip Javascript How-To 3 July 21st, 2005 02:21 AM
Getting InnerHtml ghari Javascript 3 January 3rd, 2005 12:06 PM
innerHTML interrupt Javascript How-To 6 July 22nd, 2004 02:18 PM
innerHTML problem higgsy Javascript How-To 2 August 7th, 2003 07:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.