Solved

Permission Denied

Posted on 2004-10-05
7
603 Views
Last Modified: 2008-08-26
Hello:

I am creating a quoting system where there are four frames with fields that rely on each other. The problem being that when I try and change a field from another frame, using Javascript I get a "Permission Denied" error. All the pages are in the same folder, the same domain but it just doesn't seem to be working.

Does anyone know how to solve this problem, or some workaround for it?

Thanks,
Tym.
0
Comment
Question by:prosperion
  • 3
  • 2
  • 2
7 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 250 total points
ID: 12235324
Even when all pages are in the same folder you can get the cross domain problem.
When your window address is not the same URL host AND domain as the urls for the frames pages, then you get the problem accessing the top.frames object.
The same is also true when the top window is addressed by numeric IP address and the frame pages are symbolic DNS url addressed.

0
 
LVL 63

Expert Comment

by:Zvonko
ID: 12235334
Implicite to the above: when one address is host name without domain suffix, then is the host found, but it is not same domain as same host with domain suffix.
0
 
LVL 15

Assisted Solution

by:VincentPuglia
VincentPuglia earned 250 total points
ID: 12237946
would you mind posting a link?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:prosperion
ID: 12244089
It is on an intranet so unable to post a link, but I can give you some code... there is a lot of it... but I will give you the code where I get the permission denied stuff...

Firstly, each page loads another page using the comand onload='parent.EstimateTopRight.location.href = "EstimateTopRight.aspx?<%# UrlEstimate %>";'
I have a reference table, so if a field changes, it will update the fields that it relies upon.

Table["TLSalary"]     = [TLSalaryCalc, [[TL, "TLSuperAmt"], [TL, "TLTotalPkg"]]];
Table["TLBonus"]      = [TLBonusCalc, [[TL, "TLSuperAmt"], [TL, "TLTotalPkg"]]];
Table["TLVehAllow"]   = [TLVehAllowCalc, [[TL, "TLSuperAmt"], [TL, "TLTotalPkg"]]];
Table["TLOtherAllow"] = [TLOtherAllowCalc, [[TL, "TLSuperAmt"], [TL, "TLTotalPkg"]]];

and what happens is it finds the element TLTotalPkg which is in a different frame....

Does this help at all?
0
 

Author Comment

by:prosperion
ID: 12244467
The function I use to recurse through them is:

      Table[elem.id][0]();
      for(var i = 0; i < Table[elem.id][1].length; i++)
            UpdateRefs(Table[elem.id][1][i][0].getElementById(Table[elem.id][1][i][1]));

I get the permission denied error only when trying to access somethign in a different frame.
0
 

Author Comment

by:prosperion
ID: 12245304
Okay I have checked to see the addresses of all the pages... they are as following

Frameset: http://localhost/fi/Estimate.aspx
Frame1: http://localhost/fi/EstimateTopLeft.aspx
Frame2: http://localhost/fi/EstimateTopRight.aspx
Frame3: http://localhost/fi/EstimateBottomLeft.aspx
Frame4: http://localhost/fi/EstimateBottomRight.aspx

Is there are way that they can have these addresses, yet be from different domains?
0
 
LVL 15

Expert Comment

by:VincentPuglia
ID: 12277021
afaik, no.  Have you checked what the html produced by the asp looks like?  Perhaps it is screwing up the names (creating them out of bounds, etc.)?

Vinny
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

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