Problem ASPnet IFRAME

M

Munna


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
 
G

George Ter-Saakov

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,171
Messages
2,570,935
Members
47,472
Latest member
KarissaBor

Latest Threads

Top