Re: AxWebBrowser true document size problem



See the sample code that I provided in my first post. The example shows the
classes and interfaces that I am using. These classes and interfaces do not
expose the offsetHeight or offsetWidth. Unless it is exposed it is not
available to me, whether it is defined in the Object Model or not. Do you
have working sample code that shows access to these properties?


"Alex Blekhman" wrote:

> gregl wrote:
> > While offsetHeight and offsetWidth are available via
> > Javascript, there doesn't appear to be any way of
> > accessing those values via the DHTML Object Model, which
> > is what I am using, since the point where I require the
> > values is in my C# code not my Javascript. It appears
> > that some values have been omitted from the Object Model
> > and others are initialized incorrectly or not at all. Is
> > this a bug or am I missing something here?
>
> I'm not sure I'm following you. DHTML Object Model is a set
> of defined HTML objects with their properties, methods,
> events, etc. Everything you can access from JavaScript you
> also can access from host (be it C++ or other lang
> implementation). What client side JavaScript can access is
> subset of what host can access.
>
> I host WebBrowser in C++ application and I can access any
> element of HTML document and examine/change its properties.
>
> Here's reference of document object:
>
> "document"
> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_document.asp
>
>
>
.



Relevant Pages

  • Re: AxWebBrowser true document size problem
    ... > While offsetHeight and offsetWidth are available via ... > values is in my C# code not my Javascript. ... > that some values have been omitted from the Object Model ... DHTML Object Model is a set ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: JavaScript Interpreters/Engines?
    ... Are their any JavaScript Execution Engines out their? ... SpiderMonkey is a JavaScript engine. ... language but about APIs. ... I understood the OP that they want to expose the object model as an API to ...
    (comp.lang.javascript)
  • Re: JavaScript Interpreters/Engines?
    ... Are their any JavaScript Execution Engines out their? ... I mean that some applications expose their object model to be consumed ... Microsoft also has the MS Script Control, which will host VbScript / JScript ...
    (comp.lang.javascript)
  • Re: JavaScript Interpreters/Engines?
    ... Are their any JavaScript Execution Engines out their? ... I mean that some applications expose their object model to be consumed ...
    (comp.lang.javascript)
  • Re: How to extract the text content from .ppt files
    ... Here is a sample code in c# - I may have the presentations.open ... were saying to loop through the slides and check the shape and extract ... or, simpler yet, use the object model to save the ppt as html in a temp ... directory and then parse the html file... ...
    (microsoft.public.office.developer.automation)