Skip to main content

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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

collective.kss.inlinejs-1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

collective.kss.inlinejs-1.0-py2.4.egg (11.0 kB view details)

Uploaded Source

File details

Details for the file collective.kss.inlinejs-1.0.tar.gz.

File metadata

File hashes

Hashes for collective.kss.inlinejs-1.0.tar.gz
Algorithm Hash digest
SHA256 dcd7dd7760fa6274ff8875772b714817b484766e8b389540e21037f502f351c8
MD5 451a16d5168d1cfc3d6403dd66f63bee
BLAKE2b-256 da2fa540e03d936f57a7b3fc9f61c0cce3837c55e549db19591f5927d42e70b4

See more details on using hashes here.

File details

Details for the file collective.kss.inlinejs-1.0-py2.4.egg.

File metadata

File hashes

Hashes for collective.kss.inlinejs-1.0-py2.4.egg
Algorithm Hash digest
SHA256 9c155c0771f2df9eec988eb9c2bec2f495f01a913fe30dfb15721d50ec0852ca
MD5 b596cc34fce347d766a13382cda76627
BLAKE2b-256 14829fb9d9146785b8c68ca609509f046a35d92b7ab92f3e509aca8182a210da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page