I am developing an application using .Net MVC3 that executes some Javascript through a js reference on a page.
Once the script is initiated, some javascript is returned and executed on the client side. At the end of this process I need to do a call back to mysite.com to send client-related details such as browser, IP address, etc.
To accomplish this I'm using an asynchronous call back to my server to send the data:
xmlhttp.open("GET", "http://mysite.com/record_values/" +
navigator.appVersion + "/" +
navigator.cookieEnabled + "/" +
encodeURIComponent(document.URL),
true);
Are there any other recommended ways of getting this information back to my server for recording?
Thanks.