PC Review


Reply
Thread Tools Rate Thread

Convert JavaScript Document reference to C#

 
 
Cal Who
Guest
Posts: n/a
 
      3rd Jun 2010
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;




 
Reply With Quote
 
 
 
 
Cal Who
Guest
Posts: n/a
 
      3rd Jun 2010

" Cal Who" <(E-Mail Removed)> wrote in message
news:hu8s0f$983$(E-Mail Removed)...
> 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.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert cells reference to string reference?? Robert Crandal Microsoft Excel Programming 2 1st Dec 2009 07:46 AM
Convert vb to javascript? _Who Microsoft ASP .NET 6 30th Aug 2008 04:42 PM
Keep javascript reference to the childs Guillermo D. Polonsky Microsoft ASP .NET 2 11th Jul 2006 12:59 PM
how to reference asp controls in javascript ? Juno Microsoft ASP .NET 1 28th Jul 2004 01:29 AM
How do I reference an ASP.NET control from Javascript? jm Microsoft ASP .NET 1 23rd Jan 2004 08:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 PM.