• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Site Wide Error Handling works for Hidden iframe?

New Here ,
Jun 21, 2006 Jun 21, 2006

Copy link to clipboard

Copied

I have implemented Site Wide Error Handling within my application. It is working great except that if there is an error within a hidden iframe, the Error Page is not visable to the end user. How can I bring up the Error page to the Parent so that the Error page can be seen by the end user?

Does anyone has a solution for this?

Thanks
TOPICS
Advanced techniques

Views

374

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2006 Jun 21, 2006

Copy link to clipboard

Copied

Never tried or needed to but how bout:

<body onload="native javascript functions;or;homegrown();that unhides and maximize the window;or redirects to a new one if that doesnt work()">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 21, 2006 Jun 21, 2006

Copy link to clipboard

Copied

How about

place this in the <head> tags on your error page
<script>
function makeParent(){
if(window.location <> parent.window.location){
window.parent.location = this.parent.location;
}
}

add this to your body tag
<body onLoad="makeParent();">

Hope this helps

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 26, 2006 Jun 26, 2006

Copy link to clipboard

Copied

LATEST
Pretty close. I finally got this to work.

here is the code:

function makeParent(){
if (top!=self.parent)
top.location[1]=self.parent.location;
}

and put the makeParent() function call in the onload event of the Error Page

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation