[OpenLayers-Users] Include drop down box in popup that contains query result

Arnd Wippermann arnd.wippermann at web.de
Sun Jul 27 06:52:30 EDT 2008


Hi,

you can do it on server-side with templates or client-side with javascript.

Server-side:
Create html templates for your query:

A Header template with:
<select>

A body template with:
<option value="[item1]">[item2]

And a Footer template with:
</select>

Then your query returns the HTML for a drop down box.

Client-side:
Create a body template that returns a list of the results:
[item1],[item2],[item3]

Then your query returns text, which you can transform with javascript into
the HTML for a drop down box.

Arnd Wippermann

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von S.Reena
Gesendet: Sonntag, 27. Juli 2008 11:37
An: users at openlayers.org
Betreff: [OpenLayers-Users] Include drop down box in popup that contains
query result


I have made popup in UMN openlayers. I want to make a dynamic drop down box
in it that shows result of the  postresql database query. Can any one guide
me up as to what to use..Python or something else..

Cheers,
Reena. 
--
View this message in context:
http://www.nabble.com/Include-drop-down-box-in-popup-that-contains--query-re
sult-tp18674744p18674744.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list