Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
  Wicket.Ajax.get({"u":"the/url/to/the/link", "e": "click", "c":"linkId"});

If you need more examples how to use it from JS, take a look at wicket sources: wicket-core/src/test/js/ajax.js

Many of the attributes have default values which are not written in the JSON settings and they are initialized at the client side (i.e. wicket-ajax.js knows the defaults). The example above can be read as: when HTML element with id 'linkId' is clicked fire an Ajax call with Url 'the/url/to/the/link'.

...