Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

top.window.frames[0].links[]

 
rajajee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All;
I have a page that uses frames. First frame contains different links and the second also contains links. I need to write a code in the page that is contained in the first frame that can access the links[] on the second frame.
I need help.
When I try to achieve this by using top.window.frames[1].links[xxx] it gives me an error message that the 'access is denied'.
Any solution for that?
Thanks
Rajajee
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rajajee",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried a Google search? I found many many links including this one.
That link talks about access problems with pages all in the same domain, if you are looking at frames containing dtaa from multipe domains, this link is more what you want.
A more generic definition is here.
Dave
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basic Idea:
If you are using a different page on a different sever, you can not do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic