globale Variable in KSS

Mojdeh Behzadi <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,

ich setze KSS für eine Page-Navigation innerhalb der Suchergebnisse ein, welche über eine externe DB geliefert und in Plone eingebunden werden. Die Navigation funktioniert sehr gut, nun brauche ich eine global  Variable in KSS, welche die Values von "selected checkboxes" per Pages speichert. Wie bzw. wo kann ich solche globale Variable setzen und wieder abrufen?

Im Moment werden die Values über action-server (collectSelectedBox) in einer Session-Var gespeichert:

input[type="checkbox"]:click {
  action-server: collectSelectedBox;
  collectSelectedBox -value:nodeAttr(value);
}

action-server:
for i in context.REQUEST.SESSION.get('collection'):
  ksscore.setAttribute(ksscore.getCssSelector('form[name=belitform1] input[name=rnum][value="%s"]' %(i)),'checked','true')

und action-client setStateVar hilft mir auch nicht weiter:

input[type="checkbox"]:click {
   action-client: setStateVar;
   setStateVar-varname: selectedBox;
   setStateVar-value: nodeAttr(value);
}

Wie soll ich voran gehen?

Danke euch

LG
Mojdeh

PS: Mein Projekt läuft mit Plone 3.3.3, kss.core-1.4.7, plone.app.kss-1.4.5



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.