Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Tags
  • Reference
  • Frontend developer
  • User interface and interaction
  • Template
  • JavaScript

javascript

Adds javascript that will be run after jQuery has been initialized. In dynamic content it will run after the DOM has been updated with the template where the javascript was defined.

Example:

{% javascript %}
  ...
{% endjavascript %}

Edit on GitHub

Related documentation

Actions

overlay_open

Renders a template on the server and opens a full screen overlay with the HTML output of the template.

Actions

dialog_open

Renders a template on the server and opens a dialog with the HTML output of the template.

Article

Building a live updating search page

Search pages are often simple forms that reload the page with new arguments. In this article we will show how you can make a search page…

Actions

alert

Show an alert dialog.

Actions

enable

Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.

Scomp

wire_args

Add extra arguments to wired actions.

Actions

mask

Places a mask over an element, useful for blocking user interaction during lengthy postbacks.

Actions

insert_after

Insert rendered HTML immediately after the target element.

Actions

disable

Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.

GitHub © 2026 Zotonic