Permission Denied


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?

Who is Participating?
ZvonkoConnect With a Mentor Systems architectCommented:
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.

ZvonkoSystems architectCommented:
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.
VincentPugliaConnect With a Mentor Commented:
would you mind posting a link?
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

prosperionAuthor Commented:
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?
prosperionAuthor Commented:
The function I use to recurse through them is:

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

I get the permission denied error only when trying to access somethign in a different frame.
prosperionAuthor Commented:
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?
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.)?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.