[Seaside] Re: append listItems to an unordered list using aQuery
load html:
Paul DeBruicker
pdebruic at gmail.com
Tue Feb 23 20:44:39 UTC 2010
>
> > Using #after: or #replaceWith: generates
> > an "unterminated string literal" error
>
> I can't find such an error in my image. I would assume that you get a
> "Message Not Underderstood", because JQLoad does not understand
> #after: or #replaceWith:.
>
No I change the call to aQuery after: [:r | ....].
Its an error that shows up in Firebug, not the image. Sorry to not
be more specific.
>
> You can however use a custom AJAX function, something along with what
> you find in JQAjaxFunctionalTest:
>
> html submitButton
> onClick: (html jQuery ajax
> script: [ :s | s << (s jQuery: 'li:last') after: [ :r
> | ... ]); with: 'After'
>
Thanks this is what I wanted and didn't know how to do.
More information about the seaside
mailing list