Re: How to access javascript variable via MSHTML in Dephi?



<FMchwk@xxxxxxxxx> wrote in message
news:2f1c7fb2-5739-40c7-940d-74f563115f7c@xxxxxxxxxxxxxxxxxxxxxxxxxxx
However, what my need is to get the value of myvar and return it to
Delphi.

A JavaScript global variable is a property on the window object,
accessible via late binding (IDispatch::GetIdsOfNames, Invoke). I don't
know enough Delphi to explain how to implement this technique there,
sorry.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: IBM Mainframe Calling Java from Cobol via JCL Batch STDOUT Issues
    ... public class HelloJ { ... Java Classes directly in the repository or not. ... What if you are using late binding? ... just invoke the fully qualified method of the Class you want. ...
    (comp.lang.cobol)
  • Re: public properties
    ... function init() ... this keyword refers to the Window object! ... you assign function to an object's property, and then invoke it ...
    (comp.lang.javascript)
  • Re: Targetting VB developers
    ... break with every new Delphi release and how it's even compatible ... template invoked by typing CDate would invoke a live template for ... templates may be a way to allow easier access to routines VB developers ... to educate them of the Delphi equivalent. ...
    (borland.public.delphi.non-technical)
  • Re: .NET Threading Question
    ... Listen Bro, I can guess you never used Delphi!!! ... both rocks. ... just call Invoke(). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to late-bind Excel
    ... Delphi can use Excel as a server with early binding (binding Excel's ... My DLL is, mostly, a library of functions that are called from VBA. ...
    (microsoft.public.excel.programming)