[OpenLayers-Dev] can not focuse input text fields

Gianni Barrotta giannibarrotta at gmail.com
Mon Sep 24 12:38:47 EDT 2007


Hi, I've got a similar problem. I can't select the text inside the input
field.
I tried with the following code:
OpenLayers.Event.observe(myTextInput, "click",
                      this.focusInputField);
focusInputField: function(evt) {
        evt.target.select();
},

but the text on the field in not selected.
Any idea?
THANKS

On 9/14/07, Jachym Cepicky <jachym.cepicky at gmail.com> wrote:
>
> hi,
>
> OpenLayers.Event.observe(myTextInput, "click",
>                       this.focusInputField);
> focusInputField: function(evt) {
>         evt.target.focus();
> },
>
> j
>
> Jachym Cepicky píše v Čt 13. 09. 2007 v 16:11 +0200:
> > Hi,
> >
> > I try to setup basic WPS [1][2] client in OpenLayers. I used
> > OpenLayers.Control.LayerSwitcher as base for the code. The working demo
> > (at least in Firefox) can be seen at [3].
> >
> > Only one problem: It is not possible, to focus input text fields by
> > mouse (<input type="text"></input>), so you can not write new values per
> > keyboard (for example the server name or later the process Input
> > values). Could anybody give me advice, how to get this working?
> >
> > The source, used in the demo [3] is new file, called WPS.py [4].
> >
> > Thanks
> >
> > Jachym
> >
> > [1] http://www.opengeospatial.org/standards/requests/28
> > [2] http://pywps.wald.intevation.org
> > [3]
> >
> http://www.bnhelp.cz/mapserv/pokusy/OpenLayers/jachym/openlayers/examples/wps.html
> > [4]
> >
> http://dev.openlayers.org/sandbox/jachym/openlayers/lib/OpenLayers/Control/WPS.js
> > _______________________________________________
> > Dev mailing list
> > Dev at openlayers.org
> > http://openlayers.org/mailman/listinfo/dev
> --
> Jachym Cepicky
> e-mail: jachym.cepicky at gmail.com
> URL: http://les-ejk.cz
> GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
>
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20070924/9b236d06/attachment.html


More information about the Dev mailing list