[Mono-list] postback in frames
Peter Hagen
peter at wingsofdeath.nu
Thu Dec 3 04:38:44 EST 2009
Morning again
sorry, this was a totally different issue. I found the solution and it
had nothing to do with the javascripts. It was because some controls
were wrongly inserted into the page. My apologies
Cheers
Peter
On Wed, 2009-12-02 at 09:13 +0100, Peter Hagen wrote:
> 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
>
>
>
------
4 December: NGM in Plaza, Ermelo met Conteched, Existence Denied en
Without A Trace
19 December: Metalfreakz III in Underground, Lelystad met Chiraw en A
New Dawn
24 december: Nog eenmaal The Embodiment in Rockcafe De Kelder in
Harderwijk
Powered by www.WingsOfDeath.nu
info at wingsofdeath.nu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20091203/c7a73f8b/attachment-0001.html
More information about the Mono-list
mailing list