Skip to main content
Participant
June 21, 2006
Question

Site Wide Error Handling works for Hidden iframe?

  • June 21, 2006
  • 2 replies
  • 471 views
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
This topic has been closed for replies.

2 replies

Inspiring
June 22, 2006
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
joejo318Author
Participant
June 26, 2006
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
Participating Frequently
June 21, 2006
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()">