473,396 Members | 2,039 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,396 software developers and data experts.

IFrame Access is denied when i click "back" on internet explorer

Hi I am trying to get the content of the iframe to replace the content inside a div
here is the code i use.

Expand|Select|Wrap|Line Numbers
  1. function changeContent(content) {
  2.     var buf = content + "_2";
  3.     var iframe = document.getElementById(buf);
  4.     document.getElementById(content).innerHTML = (iframe.contentDocument || 
  5.     iframe.contentWindow.document).documentElement.innerHTML;
  6. }
  7.  
it works great in both firefox and internet explorer,
but when I go to another page, and click on the "back" button on internet
explorer, it gives the "Access is denied" error...
is there anyway to fix it?
Thanks
Jul 31 '07 #1
3 3317
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

Is the content in the iframe from another domain?
Aug 1 '07 #2
yes... its from another domain....
Aug 1 '07 #3
acoder
16,027 Expert Mod 8TB
yes... its from another domain....
That's what's causing the problem. You can't access content in an iframe from another domain.
Aug 2 '07 #4

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

Similar topics

4
by: John | last post by:
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they...
4
by: Nicolas Verhaeghe | last post by:
I have designed an application which uses the Crystal Reports 8.5 ActiveX to show a report as a PDF. The report is compiled from a SQL database populated through web forms programmed in ASP. ...
7
by: George | last post by:
I am trying to set up a login-logout website. I have a cookie about the login status. I put it as logout once the logout link is clicked. And I put a little security check about the status of...
56
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving...
2
by: Amelyan | last post by:
Sometimes, when I hit the back button on IE, my Page_Load function gets executed. But sometimes, it doesn't. What controls that? Thanks, -Amelyan
0
by: Michael Nemtsev | last post by:
Hi, I need to stay on the current page even if user clicks "BACK" in browser. Opera is very stubborn in attemp of turning cached page off, and using current. Does anybody know the way how to say...
3
by: Tea Maker | last post by:
Hi, I was wondering if there's a way to call a function when a user presses on the "back" or "forward" buttons of the browsers. What I want is, redirect the user to a new website (let's say...
0
by: Summercool | last post by:
right now i have a script that will add to the DOM tree of a form... adding the hidden input values as children... it works well except when i click "BACK", Firefox doesn't remove those objects......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.