Login
480-304-5430

Prevent Intellichat popping

Stop Unwanted Popping of Intellichat

Some dynamic elements on a web page may cause intellichat to load, such as url redirection when you change an option inside a dropdown menu. By setting a variable within the code that performs that action, you can stop intellichat launching.

Our custom JavaScript variable for stopping intellichat is VirtualAgentSuspend. By setting this value to anything other than our default 'false', intellichat will not launch on the page until its set back to 'false'.

This value can be set by doing the following:

<script type="text/javascript">
VirtualAgentSuspend = 'stop';
</script>

 

Below is an example of a simple url redirection through a select element.

<select onchange="window.location=this.value">
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
</select>

 

To stop intellichat from launching when the option is changed, the above code just needs to be updated to the following:

 

<select onchange="VirtualAgentSuspend='LocationRedirect';
window.location=this.value">
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
</select>

 

For Forms you will want to add the variable to the onsubmit property of the form tag, this can be done as:

 

<form onsubmit="VirtualAgentSuspend='FormSubmit'; return true;"
method="post" action="action.php">
<lable for="email">Email: </label><input type="text" value="" name="email" id="email" />
<input type="submit" value="Submit Form" />
</form>

Intellichat is trusted by:

Connect with Intellichat: