I added click event listener onclick called DagOpenFlyout to a span element:
"<span class=\"btnFlyout\" id=\"btn" + i + "\" style=\"width: " + cellW + "px; cursor: pointer;\" onclick=\"DagOpenFlyout('cell" + i + "', " + i + ")\">\n"
Here is an implementation of the function:
function DagOpenFlyout(elt, tbItemIndex)
{
parent.parent.mapFrame.OpenFlyout(500, tbItemIndex);
}
On the DagOpenFlyout function I need to pass event argument and in DagOpenFlyout function I need to access client.X and client.Y the properties of the event argument.
How do I pass event argument to DagOpenFlyout function?
if (window.event) event; // ThisDagOpenFlyout(event, ....).onclick=\"DagOpenFlyout('cell" + i + "', " + i + ", event)\".eventis a variable inside the event handler.