Problem ASPnet IFRAME

  • Thread starter Thread starter John
  • Start date Start date

Hi John

I checkout the website project you referred... pretty interesting...
Running default2.aspx page is redirected to defaul.aspx and i was
unable to debug...
when i turn of the onload code of default2.aspx the page did not
redirected to default...
and i was able to debug... very interesting...

so obviously there is some thing wrong with javascript code...

then in remove the part

//if (parent.document.getElementById('main_div')) {
// parent.document.getElementById('main_div').innerHTML =
document.getElementById('inner_frame').innerHTML;
// }

javascript code and make your iframe visible and debug is okay...

and this is obviously that copy innterHTML from iframe to a div work
well in client side
but you don't expect it to persist in dom and default.aspx will handle
that... will you?



Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 
You basically grab inner content of IFRAME (default2.aspx) and dump it on
your main page default.aspx.
So when you click the button the default.aspx gets submitted. Obviously no
code on default2.aspx will work then.

George
 
Back
Top