Live Chat Software by Kayako |
How to Automate Login to SmarterStatsPosted by on September 09 2015 05:39 PM
|
|
The code below demonstrates how you can make a text link (e.g. "See Your Stats") automatically log in to the SmarterStats application. You can place this on a new or existing page on your website, if desired. For the example code listed below, the form values are set as generic text (e.g. "put_their_siteid_or_domain") to show where you would hard code values that will be submitted to the login.aspx page. You could also dynamically generate these values using a scripting language like ASP or ColdFusion (a sample ASP script would substitute value="put_their_siteid_or_domain" with value=<% =txtSiteID %>). ________________________________________ <SCRIPT LANGUAGE="JavaScript"> function GoToStats() { document.statsform.submit(); } </SCRIPT> If you have any further questions that were not answered in this article, please contact us.
| |
|