On Thu, 03 Jul 2008 16:49:57 +0400, Vladislav Vorobiev wrote:

> Hello,
> 
> I do not understand how to use them.
> 
> I want to send a GET REQUEST to my SERVER.
> 
> .editMens:click {
>   evt-click-preventdefault: true;
>   evt-click-allowbubbling: true;
>   action-client: cacheability-serverAction;
>   cacheability-serverAction-url: actionName;
> }
> 
> What's mean actionName? By click on my editMens link, i got

In place of actionName you need to use the name of server action that you 
want to run on the server.

> [Exception... "'Error: Error : undefined local action
> [cacheability-serverAction].' when calling method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> 
> in a firebug. Is it the URL to server script?
> 
> Can I use a construction something like this?
> cacheability-serverAction-url: kssattr(bla); ??

Yes.

> Maybe somebody has a working example for me?

Your example will probably work, the problem is likely that
you have not installed the plugin properly.

If you install the plugin as an egg, you will need to include its zcml 
with the available "slug" that needs to be copied to etc/package-includes.
This is written in docs/INSTALL.txt.

If you use buildout, you need to add kss.plugin.cacheability
to the "zcml =" list in the [instance] section.

Good luck,

-- 
Balazs Ree

_______________________________________________
Kss-devel mailing list
Kss-devel@codespeak.net
http://codespeak.net/mailman/listinfo/kss-devel

Reply via email to