All links have to call a particular JavaScript function supported by Aware IM in a special object called AwareApp, so the general format of a link is as follows:
Code: Select all
<a href=”#” onclick=”AwareApp.functionName(parameters)” >Name of the link</a>
I have converted all my links to use href="JavaScript:void(0);" instead.
- TEXT LINK
Code: Select all
<a href="JavaScript:void(0);" OnClick="AwareApp.functionName(parameters)”">My Text Link</a>
- BUTTON - href not required for buttons
Code: Select all
<button onClick="AwareApp.startProcessFromForm ('myProcessName','main', this, false)" type="button" class="" role="button">My Button</button>
Tip found at
http://bit.ly/1kVnbZy
Cheers