Plugin JavaScript Function pluginAJAXLink()

function module_class_name.pluginAJAXLink(
slotNameOrContainedElement, requests
)

Description

This generates a link to your pluginAJAXLink() method.

Where You Can Use It

Anywhere in your JavaScript code in the front-end. From Zenario 7.0.6 onwards.

Parameters

slotNameOrContainedElement

The name of the slot on the current page to reload.

Alternately, you can pass in an element from the slot, and the CMS will look up the name of the slot from that.

requests

Either a request string, or an object with the requests as keys/values.

Return Value

A URL to call your handlePluginAJAX() method with the provided requests.

Example

plugin_class_name.pluginAJAXLink('Main_1', {page: 2});