remove focus from navigation tools...

View: New views
3 Messages — Rating Filter:   Alert me  

remove focus from navigation tools...

by Berényi Attila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to include my legendtemplate as a hidden div what appears only if i click on the appropriate button.
It works nicely but if I have any navigation tool (e.g. zoomin, zoomout, etc...) active it catches the cursor position and zooms in/out if i click into the layer's checkbox to turn it off or on....and it's very annoying.

Is it any possibility to remove focus from zoomin, etc...if I click on a designated button?

Thanks in advance,

Attila

_______________________________________________
Chameleon mailing list
Chameleon@...
http://lists.maptools.org/mailman/listinfo/chameleon

Re: remove focus from navigation tools...

by Julien-Samuel Lacroix-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

You can reset the NAV_CMD hidden variable to unset the nav button.

document.forms[0].NAV_CMD.value = '';

Julien

Berényi Attila wrote:

> Hi,
>
> I'm trying to include my legendtemplate as a hidden div what appears
> only if i click on the appropriate button.
> It works nicely but if I have any navigation tool (e.g. zoomin, zoomout,
> etc...) active it catches the cursor position and zooms in/out if i
> click into the layer's checkbox to turn it off or on....and it's very
> annoying.
>
> Is it any possibility to remove focus from zoomin, etc...if I click on a
> designated button?
>
> Thanks in advance,
>
> Attila
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon@...
> http://lists.maptools.org/mailman/listinfo/chameleon

--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
_______________________________________________
Chameleon mailing list
Chameleon@...
http://lists.maptools.org/mailman/listinfo/chameleon

Re: remove focus from navigation tools...

by Berényi Attila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Julien,

Thank you! That's what I was looking for!

Thanks again!

Attila

Julien-Samuel Lacroix írta:
Hi,

You can reset the NAV_CMD hidden variable to unset the nav button.

document.forms[0].NAV_CMD.value = '';

Julien

Berényi Attila wrote:
Hi,

I'm trying to include my legendtemplate as a hidden div what appears only if i click on the appropriate button.
It works nicely but if I have any navigation tool (e.g. zoomin, zoomout, etc...) active it catches the cursor position and zooms in/out if i click into the layer's checkbox to turn it off or on....and it's very annoying.

Is it any possibility to remove focus from zoomin, etc...if I click on a designated button?

Thanks in advance,

Attila


------------------------------------------------------------------------

_______________________________________________
Chameleon mailing list
Chameleon@...
http://lists.maptools.org/mailman/listinfo/chameleon


-- 
Berényi Attila / Attila Berényi
okl. térinformatikus mérnök / MSc. GIS engineer
Burken Kft. / Burken Ltd.

H-1155 Budapest, Obsitos tér 2.
Tel1: +36-1-415-0219
Tel2: +36-1-415-0220
Fax:  +36-1-410-1314
E-mail: aberenyi@...
Web: http://www.laservision.hu

_______________________________________________
Chameleon mailing list
Chameleon@...
http://lists.maptools.org/mailman/listinfo/chameleon