Solved

top.document equivalient in Chrome

Posted on 2013-01-12
4
226 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

13 Experts available now in Live!

Get 1:1 Help Now