[Seaside] JQuery get

Lukas Renggli renggli at gmail.com
Thu Apr 8 12:20:53 UTC 2010


Replace the string with

     '$.("makita").html(data);' asFunction: #('data')

or alternatively use

     '$.("makita").html(arguments[0]);'

On 8 April 2010 14:00,  <serge.vi at gmail.com> wrote:
> I have a little problem with an AJAX GET in seaside 3 , here is the code i
> use :
>
> renderContentOn: html
>
> html heading level:1; with:'Sample get'.
> html break.
>
> html div id: 'makita'.
> html document
> addLoadScript:(html jQuery get url:'http://www.makita.fr'
> onComplete:'$.("makita").html(data);')
>
> But, of course, data here is empty because the generated code gives :
>
> <script type="text/javascript">/*<![CDATA[*/function
> onLoad(){$.get("http://www.makita.fr",function(){$.("makita").html(data);})}/*]]>*/</script>
>
> All is perfect but the missing data parameter in the internal function() of
> $.get.
>
> I couldn't find where to add this.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside mailing list