[Mono-list] postback in frames
Peter Hagen
peter at wingsofdeath.nu
Wed Dec 2 03:13:07 EST 2009
Goodmorning
today I got a message from someone, how includes a page of mine in a
iframe on their website. In this page are some postback linkbuttons
which are generated by mono (asp.net). In none framed situations these
work just fine, but when its been used in the frame, somehow then dont
work. When clicking the link, the frame is being refreshed, but nothing
happens. Mono generates this following javascript for the postback:
<script type="text/javascript">
//<![CDATA[
window._form = theForm;
window.__doPostBack = function (eventTarget, eventArgument) {
if(theForm.onsubmit && theForm.onsubmit() == false) return;
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
//]]>
</script>
Firefox doesnt give an error, so im not sure what the problem is. If you would like to test it, the working (no-framed) url is:
http://www.wingsofdeath.nu/cms.aspx?agenda
and an example of the not working situation (there are more situations like this which dont work, just like a local html with iframe also gives this error):
http://www.metalkrant.sp2o.org/index.php?page=7
Is this a bug, or should I do something special to let the postback know its in a frame?
Cheers
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20091202/e30d7bfd/attachment.html
More information about the Mono-list
mailing list