[Users] Trigger a py script on click event

Alexandre Dubé adube at mapgears.com
Wed Aug 1 20:43:36 CEST 2012


Hi,

   You can call your script using the [Ext.Ajax] class.  Simply follow 
the the documentation examples and in your 'success' function callback, 
search for the dom element where you want to put the returned html and 
set its content to it.

   For a concrete example of use, see this [example], look at the 
Ext.Ajax.request method.

HTH,

Alexandre


[Ext.Ajax] http://docs.sencha.com/ext-js/3-4/#!/api/Ext.Ajax
[example] 
http://dev.sencha.com/deploy/ext-3.4.0/examples/key-feed-viewer/view.html


On 12-08-01 02:19 PM, Smaran Harihar wrote:
> Hi,
>
> I wish to trigger a py script on click event of the user on the map. 
> Presently I am using the click event for Lat n Long PopUp. Now i wish 
> to send this lat and long to the py script and execute the py script 
> and display the table that i am getting back.
>
> Where should I begin?
>
> -- 
> Thanks & Regards
> Smaran Harihar
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120801/26a49f7c/attachment.htm 


More information about the Users mailing list