[Seaside] How to have a ajax handler?

Sebastian Sastre sebastian at flowingconcept.com
Wed Jul 9 15:53:06 UTC 2014


can you use jquery success callback?

like

$.ajax(blabla  ’success’: ‘a/callback/url/withASeasideActionToYourBackend' )





On Jul 9, 2014, at 12:15 PM, Mariano Martinez Peck <marianopeck at gmail.com> wrote:

> 
> 
> 
> On Wed, Jul 9, 2014 at 11:06 AM, Sebastian Sastre<sebastian at flowingconcept.com> wrote:
> you’re not saying if url/someAPI is your server or not
> 
> It can be any server, in my case, yes, I would like to use the same server/app from where I am using the plugin. 
>  
> and, if yours, if it’s a seaside app or not
> 
> 
> yes it is. And it must run in gemstone and pharo. 
> 
> Note that the url can, of course, be specified. It is an ajax request. 
> 
> Thanks, 
>  
> 
> 
> 
> 
> On Jul 9, 2014, at 10:57 AM, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
> 
>> Hi guys,
>> 
>> Maybe the subject of the email is not the most accurate. What I need is the following. From seaside, I am calling a JS library using "html script: 'xxx' ". Now, that JS libs provides me a feature in which it can do an AJAX request to the "url/someAPI" and send some JSON (what I need).
>> 
>> When I do an ajax request from within seaside I can easily attach a callback. However, in this case, I don't know how to do that. What I need is a callback associated to url/someAPI and I need to read the JSON sent in that ajax request.
>> 
>> Any idea how can I do this?
>> 
>> Thanks in advance,  
>> 
>> -- 
>> Mariano
>> http://marianopeck.wordpress.com
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140709/7088f74e/attachment-0001.htm


More information about the seaside mailing list