473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Frames Cross-Domain issue

150 100+
i have 3 frames on on the right and other on the left , the right frame submit data by java script,the left frame i need to get the current elements on the right frame by javascript i used this code :

Expand|Select|Wrap|Line Numbers
  1. var myIFrame = parent.document.getElementById(iFrameName);
  2. var theiframebody = (myIFrame.contentDocument)? myIFrame.contentDocument.body: myIFrame.Document.body;
  3. try{
  4.     alert(myIFrame.theiframebody.getElementById('element').value);
  5. }catch(e){
  6.     alert('error');
  7. }
it give me an error permission is denied or access is denied , how can bypass this error and get the elements ?
Apr 4 '09 #1
5 2852
dmjpro
2,476 2GB
Have a look at this
I think it may help you..
Apr 4 '09 #2
smartic
150 100+
this code he have control on both pages put i can't control one the frames?
Apr 5 '09 #3
acoder
16,027 Expert Mod 8TB
Then use a server-side proxy as suggested in one of the earlier posts, i.e. serve the page from the other domain from your server.
Apr 5 '09 #4
smartic
150 100+
i used Web Proxy for Cross-Domain put i have an error ( 405 not allowed nginx )
Apr 6 '09 #5
acoder
16,027 Expert Mod 8TB
It usually means you're using the wrong method to access the page. How are you accessing the page? Are you posting to it?
Apr 6 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Frédéric Mayot | last post by:
Hi, I have an HTML page like this : --- test.html <html> <body> <form> <iframe id="frametest" name="frametest" src="iframe.html"></iframe> <select multiple...
2
by: Flat Earth | last post by:
I edit a magazine at www.mississippireview.com that i just changed by putting an INLINE FRAME in a table with an constant top and bottom. So far it doesn't look awful in IE, doesn't work at all...
4
by: Kai Grossjohann | last post by:
I have a design where the page is divided into two frames. The top frame is just one line tall and is to contain a menu. The bottom frame is again divided into three frames (left, middle, right)....
3
by: ShadowMan | last post by:
Hi all I've seen a lot of posts about frames emulation. I would like to emulate a: header, left-side menu, content, footer layout. I need to be cross browser compatible...but I'm get crazy!!!...
1
by: GodFoca | last post by:
Hey all! I have a frameset with two frames, and want to have a button in one frame call print() in the other one: This is the layout: <frameset rows="*,40" frameborder="NO" border="0"...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
6
by: hemant_mishal | last post by:
Hi All, I am writting a java script library which will provide inter frame drag and drop operation. The more precise will be OLE drag and drop, which means only data will be transfered from frame...
4
by: Raffi | last post by:
I'm developing an application where the main page has an iframe that contains the form. The "Submit" button is located on the main page (not the iframe). Is it possible to get the form data from...
2
by: Mark Kamoski | last post by:
Hi-- I need a code sample of how to redirect from an ASP.NET page to a frames-based html page and specifying what should load in the destination's frames. Any ideas? (Even air-code is much...
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.