Re: Javascript and Microsoft Windows
"Richard Cornford" <Richard@litote s.demon.co.ukwr ote in message
news:1155662478 .340750.19740@7 4g2000cwt.googl egroups.com...
My goal is to find out the difficulties in deriving a truly universal scripting
language. In other words a scripting language capable of controlling literally
any program of any kind what-so-ever that will run on modern operating systems
such as MS Windows. If I narrow down the question, then I get an answer that
does not help. My purpose of coming to this forum is to determine the
difficulties and challenges in deriving a scripting language capable of
controlling any JavaScript program, yet even this purpose is only a tiny subset
of my primary goal.
Yes, how would it do this, and what do you mean by context?
I don't know what W3C stands for, I assum that DOM stands for document object
model.
The most salient aspect of a graphical user control element's current state
would be its GUI control state. Its color could be construed as a part of the
state of the element, yet generally an inessential part of this state. Whether
or not a checkbox is checked, whether or not an edit box has text, and the value
of this text if present, all those things that directly pertain to this items
role as a GUI control element, also needed are its exact location, and the exact
location of its constituent parts, if any.
What is the API call to get to these? (or where could I find out the name of
this API call?)
"Richard Cornford" <Richard@litote s.demon.co.ukwr ote in message
news:1155662478 .340750.19740@7 4g2000cwt.googl egroups.com...
Peter Olcott wrote:
<snip>
>>
>If we assume that there is a JavaScript program running in the web-browser,
>
OK.
>
>
Narrow it down, why don't you?
>Richard Cornford wrote:
>>Peter Olcott wrote:
>>>What I really need to know is exactly how difficult it is for another
>>>program
>>>
>>What is 'another program'?
>>>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?
language. In other words a scripting language capable of controlling literally
any program of any kind what-so-ever that will run on modern operating systems
such as MS Windows. If I narrow down the question, then I get an answer that
does not help. My purpose of coming to this forum is to determine the
difficulties and challenges in deriving a scripting language capable of
controlling any JavaScript program, yet even this purpose is only a tiny subset
of my primary goal.
>
>
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.
>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.
>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.
>
>>
>Is the checkbox currently checked or unchecked
>
The W3C HTML DOM defined - HTMLInputElemen t - interface has a boolean -
checked - proprety, that represents a formalization of a traditional
feature of representations of input elements exposed to scripting.
>>>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
>>determinati on 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?
>>>
>>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
>>determinati on 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 - HTMLInputElemen t - interface has a boolean -
checked - proprety, that represents a formalization of a traditional
feature of representations of input elements exposed to scripting.
model.
>
>
And yet when asked for clarification you are only actually interested
in one aspect of the element's state.
>("Current state" is a generic
>term of the art of computer science).
>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.
would be its GUI control state. Its color could be construed as a part of the
state of the element, yet generally an inessential part of this state. Whether
or not a checkbox is checked, whether or not an edit box has text, and the value
of this text if present, all those things that directly pertain to this items
role as a GUI control element, also needed are its exact location, and the exact
location of its constituent parts, if any.
>
>>
>Great exactly how do they expose this, an API call?
>
As properties of the exposed representations of the elements.
>>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.
>>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.
this API call?)
>
>>
>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.
>
>
>Someone told me that this is pretty easy using Ajax.
>
AJAX is completely irrelevant to the issue.
>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.
>
Comment