[Seaside] JQuery get

serge.vi at gmail.com serge.vi at gmail.com
Thu Apr 8 12:00:53 UTC 2010


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100408/5feb533f/attachment.htm


More information about the seaside mailing list