From: Cal Who on 3 Jun 2010 14:24 I've been trying to do something in JavaScript for a few days without success so I thought I'd try to convert to C#. I think I have it except that I don't know how to handle the Javascript Document in C#. Below are a few line that I'm having trouble converting to C#. Can you help? Thanks if (iFrameObject.document && iFrameObject.document.body && iFrameObject.document.body.scrollHeight) { var oBody = iFrameObject.Document.body; var the_height = oBody.scrollHeight;
From: Cal Who on 3 Jun 2010 14:48 " Cal Who" <CalWhoNOSPAM(a)roadrunner.com> wrote in message news:hu8s0f$983$1(a)news.eternal-september.org... > I've been trying to do something in JavaScript for a few days without > success so I thought I'd try to convert to C#. > > I think I have it except that I don't know how to handle the Javascript > Document in C#. > > Below are a few line that I'm having trouble converting to C#. > > Can you help? > > Thanks > > if (iFrameObject.document && iFrameObject.document.body && > iFrameObject.document.body.scrollHeight) { > > var oBody = iFrameObject.Document.body; > > var the_height = oBody.scrollHeight; > Wasted effort converting! I just realized that there is no way the code-behind will know how big the browser will display the iFrame. I must solve some of the other problems I've posted.
|
Pages: 1 Prev: lifetime of Session and Application ??? Next: Single DLL vs. Multiple DLLs |