473,796 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access iframe DOM

Yanskopolis
9 New Member
Is it possible to read the DOM of an iframe if the iframe's src is from another domain?

I realise I can't manipulate the DOM from another domain for security reasons, but can I access the DOM and just read object's values?
Apr 17 '07 #1
1 1411
acoder
16,027 Recognized Expert Moderator MVP
I think you should be able to. See link (subtitled: Accessing the document).
Apr 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1911
by: Steve | last post by:
This really surprised me. I setup an iFrame in my document to display data from another table. For me, this was a way to be able to update that data without having to reload the whole page. Also, the iFrame gives me the ablity to have a scrolling table of results that doesn't fill up the whole screen when a lot of data is present. when I read in the main page, the src of the iframe is set to a URL like...
3
8540
by: pat | last post by:
hi all. am trying to find out how to read/load data from an ini file (and save it too) thanx in advance pat
6
4763
by: jeet_sen | last post by:
Hi, I have generated a table and have attached a pop up to display at onmouseover event of each cell. For each cell the pop up will display cell specific detailed data. I have generated the pop up using iframe and it is working fine. On mouseout event of each cell I have destroyed the created the iframe. This is working fine. But if I try to move the cursor over the iframe, the mouseout event is fired and my iframe is vanishing off.
1
6190
by: tilt | last post by:
Hello, I use an object element to replace the iframe element in ie, like this: <object id="x_obj" data="http://.../" type="text/html"> <iframe name="x_if" id="x_if" src="http://.../">
1
5144
by: srivatsans101 | last post by:
Hi, I'm trying to access the IFrame contents on a HTML page as frames.document But in IE, I'm getting Access Denied Error Message. I tried to add the IFrame's Src WebSite (a local/intranet hosted dynamic HTML page) to Trusted Sites list in IE Options.
4
32176
by: Yansky | last post by:
Is it possible to read the DOM of an iframe if the iframe's src is from another domain? I realise I can't manipulate the DOM from another domain for security reasons, but can I access the DOM and just read object's values? This is what I've tried so far without any success: document.getElementsByTagName("iframe").contentWindow; document.getElementsByTagName("iframe").innerHTML;
6
2324
by: oscar1martin | last post by:
The property document.links seems to access links inside a frame, but not an iframe. For instance, the following code displays a "4": 2 links in main page, 2 links in frame1. <body onload="fn()"> <script type="text/javascript"> function fn() { alert(document.links.length)
1
7964
by: benoypaul | last post by:
I have created iframe with following code <iframe src="http://astore.amazon.com/" width="100%" frameborder="0" name="amframe" id="amframe" height="1" scrolling="no" onLoad="resizeFrame1();" ></iframe> I have used following javascript code to access scrolheight of iframe , in order to remove scroll bar based on the height var h= document.getElementById("amframe").contentWindow.document.body.scrollHeight
9
8848
by: Lee | last post by:
Hi all, We need to create a page where we detect the finish of a game that's hosted on another site. We thought of doing it with frames, where we would put the game in an iframe that is contained in our page. All we need to do is to READ the location.href of that iframe (which is again, from anohter domain, not our domain) - but we can't! According to this MSDN article, http://msdn.microsoft.com/en-us/library/ms533028(VS.85).aspx...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.