473,380 Members | 1,225 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,380 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 2851
2,476 2GB
Have a look at this
I think it may help you..
Apr 4 '09 #2
150 100+
this code he have control on both pages put i can't control one the frames?
Apr 5 '09 #3
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
150 100+
i used Web Proxy for Cross-Domain put i have an error ( 405 not allowed nginx )
Apr 6 '09 #5
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

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...
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...
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)....
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!!!...
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"...
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...
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...
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...
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...
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....
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
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
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...
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...

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.