Solved

top.document equivalient in Chrome

Posted on 2013-01-12
4
228 Views
Last Modified: 2013-01-17
top.document.getElementById(iFrameId)  .... works fine in IE but returns null in Chrome.

Any thoughts please ?
0
Comment
Question by:cehrnow
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 250 total points
ID: 38771238
Should work

Can you show the html with the iFrame? does it have an ID or just a name?

e.g.

var iFrameId = "myIframe";
top.document.getElementById(iFrameId);
.
.
<iframe id="myIframe"....
0
 
LVL 23

Assisted Solution

by:Roopesh Reddy
Roopesh Reddy earned 250 total points
ID: 38771349
Hi,


You can even try -

window.parent.document.getElementById()

Open in new window


Hope it helps u...
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38786167
Hi,

Is the issue solved?
0
 

Author Comment

by:cehrnow
ID: 38786225
top.document.getElementById(iFrameId)does work..the issue was something else.
window.parent also works.
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now