Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Plugin that allows you to put javascript code evaluated by kss

Project Description

collective.kss.inlinejs

If you want to use external js 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’; }

TODO

  • Tests coverage

Author

Release History

Release History

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.kss.inlinejs-1.0-py2.4.egg (11.0 kB) Copy SHA256 Checksum SHA256 2.4 Egg Jun 17, 2009
collective.kss.inlinejs-1.0.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source Jun 17, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting