Plugin JavaScript Function showFloatingBoxLink()

function module_class_name.showFloatingBoxLink(
slotNameOrContainedElement, requests
)

Description

This generates a link to your showFloatingBox() 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 showFloatingBox() method with the provided requests.

Example

plugin_class_name.showFloatingBoxLink('Main_1', {id: 9});