Re: Javascript and Microsoft Windows




"Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1155650612.498299.19170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Peter Olcott wrote:
<snip>
... . My original question can not be rephrased.

That would be a pity as your original question did not make sense in
javascript terms (javascript has no 'controls', instead relying on a
host to provide that type of facility). But It has been answered
anyway: browser hosts use Windows native input elements, their own
internal input elements and even Java Swing input elements (in the case
of IceBrowser at least).

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, the
other program is any program besides this program. 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.



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 ("Current state" is a generic
term of the art of computer science).

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?


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.


Richard.



.



Relevant Pages

  • Re: Javascript and Microsoft Windows
    ... javascript terms (javascript has no 'controls', ... internal input elements and even Java Swing input elements (in the case ... Javascript executing in browser environments can determine the exact ...
    (comp.lang.javascript)
  • Re: Checking if form values have changed between postbacks
    ... thinking you were looking to avoid roundtrip and even the notification if ... The controls would reflect the state ... > Yeh I was trying to avoid doing this in javascript... ... > "Hermit Dave" wrote: ...
    (microsoft.public.dotnet.framework.aspnet)
  • javascript popup conflict
    ... I'm having a problem with two different javascript controls in my app. ... client-side calendar control popup which works fine when first used. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Full Ajax driven application - patterns/practices
    ... you want javascript to be able to create and remove controls. ... I use Telerik Controls where i can ajaxify every control by using telerik features and their controls. ... I found that my client doesnt want any page reload at all, whole site must behave like gmail. ... every action goes througs ajax and view is partially updated notifiyng user by i.e. Please wait label on top right of the screen ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Disable Button With Javascript
    ... What I normally do is declare Javascript variables in a static .js file ... controls, I insert script blocks which set those variables. ... you can use client-side JavaScript to refer to your controls ... MasterPage, ASP.NET will ALWAYS rename it to aspnetForm :-) ...
    (microsoft.public.dotnet.framework.aspnet)

Loading