[Users] Trigger a py script on click event

Alexandre Dubé adube at mapgears.com
Thu Aug 2 13:47:49 CEST 2012


Hi Smaran,

   Don't forget to include the list when you reply.

   Try looking at some examples on the web, as such :
http://www.sencha.com/forum/showthread.php?103449-sample-code-for-Ext.Ajax.request-and-....

HTH,

Alexandre


On 12-08-01 05:11 PM, Smaran Harihar wrote:
> Hi Alexandre,
>
> Thanks for the reply, but I am a not sure if that examples was the 
> right link you sent. I was not able to see any example there.
>
> The link to the doc did have the Ext.Ajax.request Method. Since I am 
> new to this, I was hoping if there was a working example which i could 
> look up?
>
> On Wed, Aug 1, 2012 at 11:43 AM, Alexandre Dubé <adube at mapgears.com 
> <mailto:adube at mapgears.com>> wrote:
>
>     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
>     <http://docs.sencha.com/ext-js/3-4/#%21/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  <mailto:Users at geoext.org>
>>     http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>     -- 
>     Alexandre Dubé
>     Mapgears
>     www.mapgears.com  <http://www.mapgears.com>
>
>
>     _______________________________________________
>     Users mailing list
>     Users at geoext.org <mailto:Users at geoext.org>
>     http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> -- 
> Thanks & Regards
> Smaran Harihar
>


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

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


More information about the Users mailing list