Re: Javascript and Microsoft Windows
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: 15 Aug 2006 10:21:18 -0700
Peter Olcott wrote:
Richard Cornford wrote:<snip>
Peter Olcott wrote:
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.
.
- Follow-Ups:
- Re: Javascript and Microsoft Windows
- From: Peter Olcott
- Re: Javascript and Microsoft Windows
- References:
- Javascript and Microsoft Windows
- From: Peter Olcott
- Re: Javascript and Microsoft Windows
- From: Dr John Stockton
- Re: Javascript and Microsoft Windows
- From: Peter Olcott
- Re: Javascript and Microsoft Windows
- From: RobG
- Re: Javascript and Microsoft Windows
- From: Peter Olcott
- Re: Javascript and Microsoft Windows
- From: The Magpie
- Re: Javascript and Microsoft Windows
- From: Peter Olcott
- Re: Javascript and Microsoft Windows
- From: Richard Cornford
- Re: Javascript and Microsoft Windows
- From: Peter Olcott
- Javascript and Microsoft Windows
- Prev by Date: Re: Determining the exact location and current state of any controls
- Next by Date: Re: SURVEY - Please do Respond
- Previous by thread: Re: Javascript and Microsoft Windows
- Next by thread: Re: Javascript and Microsoft Windows
- Index(es):
Relevant Pages
|