Versions Compared

Key

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

...

But lets quickly look at the JavaScript code necessary to initiate an Ajax request. Below is a simple client-side example to initiate an Ajax request when a link is clicked.

Please note: the code below is an example of the markup and JavaScript code that must be rendered by a client-side Click implementation. The implementation will most likely use generic templates and that accepts variables such as the CSS selector, event, page url etc.

Code Block
titlemy-page.htm
borderStylesolid
<a id="mylink" href="my-page.htm">Click Me</a>

<div id="target">Update Me</div>

...