chrissi wrote:
Hello Everyone,
altought by English is not so ggod, I try to explain my problem...
With the prototype ajax.updater it's possible to update a div trough
a given url.
Is there any possibility to update it with a function?
Wenn cklicking on a link, the layer 'mainContent' show be updated with
the function Shop::cart()
Thanks for your answer.
First of all, Shop::cart() is not a javascript function. So what are
you talking about? It's probably a server-side function, in which case
Ajax.updater is exactly what you want (if you insist upon using
Prototype). You just need to determine the URL that maps to
Shop::cart(), and if there isn't one, make one. If you need help
figuring out how to do this, it would be a better question for a group
about your server-side language.
Jeremy