Re: Javascript and Microsoft Windows



Peter Olcott wrote:
Richard Cornford wrote:
Peter Olcott wrote:
<snip>
What I really need to know is exactly how difficult it is for another
program

What is 'another program'?

If we assume that there is a JavaScript program running in the web-browser,

OK.

the other program is any program besides this program.

Narrow it down, why don't you?

In other words I need a way to determine the exact location and
current state of any graphical user interface controls that are
displayed in the web-browser, and this way must be able to provide
this information to a different program beside the one running
in the web-browser.

Where a browser (combined with the context ) makes the determination of
the location of elements possible the results of such calculations may
be sent to a web server (which qualifies as your 'other program') in
various ways.

to determine the exact location

Javascript executing in browser environments can determine the exact
pixel position (screen/ within the window and on the HTML page) of
elements being displayed in an HTML document that it is scripting
whenever the browser eposes sufficient information for that
determination to be possible (which is often, but not universally, the
case).

and current state of any graphical user interface controls.

What do you consider the 'state' of a graphical user Interface
control?

Is the checkbox currently checked or unchecked

The W3C HTML DOM defined - HTMLInputElement - interface has a boolean -
checked - proprety, that represents a formalization of a traditional
feature of representations of input elements exposed to scripting.

("Current state" is a generic
term of the art of computer science).

And yet when asked for clarification you are only actually interested
in one aspect of the element's state.

Brower hosts expose properties of controls/elements to scripting and
the values of those properties are normal candidates to be considered
the 'state' of the control/element.

Great exactly how do they expose this, an API call?

As properties of the exposed representations of the elements.


Someone told me that this is pretty easy using Ajax.

AJAX is completely irrelevant to the issue.

The way that it was explained is that Ajax is a hodge podge conglomeration
of JavaScript, XML and some other things, and that these exposed
properties are exposed in an XML format.

Yes, you can stop taking web development advice from whoever it was who
said that.

Richard.

.



Relevant Pages

  • Re: Calling C# COM object from JavaScript
    ... You should expose the class through COM interop and then pass that to ... You could use reflection to set the properties of the javascript object ... Now I'm passing a JavaScript object into the C# COM function. ... public string str1; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Calling a Javascript function from CSharp class.
    ... We have a javascript file which has some ... You expose a function that you ... I assume you know about the RegEx support in C#? ...
    (microsoft.public.dotnet.languages.csharp)
  • accessing bho from javascript
    ... i want to create a bho that i can access from javascript on my page. ... want to expose a few async events in the bho that i can respond to with ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: saving the output of obfuscated javascript
    ... Visit it and view source to see the obfuscated javascript. ... Is there any tool to run this javascript outside my web-browser, ... your browser's address bar: ...
    (comp.lang.javascript)
  • Re: saving the output of obfuscated javascript
    ... Visit it and view source to see the obfuscated javascript. ... Is there any tool to run this javascript outside my web-browser, ... That should give you a nice big alert showing you the modified page ...
    (comp.lang.javascript)