collective.kss.inlinejs 1.0

Plugin that allows you to put JavaScript code evaluated by kss
If you want to use external JavaScript libraries with kss you may have to write a kss plugin (for example create a jQuery porting of some features). When it makes sense you can also use this package and put simple inline JavaScript code that will be executed.

You can call JavaScript code from the inlinejs kss command set or configure properly a kss configuration file.

Example usage

From python code:

element = ksscore.getHtmlIdSelector('selector') inline = self.getCommandSet("inlinejs") inline.execJs(element, "alert('TEST'); alert(node.id); jQuery(...)")

From a kss configuration file:

img:click {
 action-client: inlinejs-effect; inlinejs-effect-code: 'alert(node.id); alert("done"); jQuery(...)'; inlinejs-effect-debug: '1'; }

last updated on:
July 23rd, 2011, 9:25 GMT
price:
FREE!
homepage:
www.redomino.com
license type:
GPL (GNU General Public License) 
developed by:
Davide Moro
category:
ROOT \ Internet \ Plone Extensions
collective.kss.inlinejs
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT