[thelist] [SPAM] IFrame and request object issue

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Wed Mar 29 01:46:33 CST 2006


Someting like this may help:

- override __doPostBack postback method on the js.

function __doPostBack_override(eventTarget, eventArgument)
{
   /*transfer all info required from the IFRAME to hidden fields in your
container page. */

    /* then do the actual postback */
    __doPostBack(eventTarget, eventArgument);
}

and assuming that you are doing your action on a button click.

window.onload=function()
{
   var btnSubmit=document.getElementById("btnSubmit");

   btnSubmit.onclick=btnSubmit_click;
};

function btnSubmit_click(evt)
{
   __doPostBack_override(/*required params*/)
   return false;
};

...
Though it involves tedious work and a lot of hack, it can be done for sure.

However, why not import your IFRAME as a asp:panel to your page.

It would be a more apropriate solution imho, since;
- You will be isolating the content in a user control instead of iframe
- You will have full access to the request both from the client side and
server side.

HTH,
--
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/



More information about the thelist mailing list