Tracking Mouse Cursor and storing it in database

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 3
Reputation: matthewcar is an unknown quantity at this point 
Solved Threads: 0
matthewcar matthewcar is offline Offline
Newbie Poster

Tracking Mouse Cursor and storing it in database

 
0
  #1
Oct 23rd, 2009
I am developing a website in ASP.net and I would like to be able to track the mouse movements whilst a user of the site is browsing pages on the site and be able to store the duration in seconds of how long the cursor is left in specific areas on the user's screen (blocks of areas on the screen) back in my site's database.

Is there a .net class which can handle this or can I only do this in JavaScript or AJAX?

I am sure that mouse tracking can be done in Javascript but I can't really store the positions and times collected to my database in the background without interrupting the user whilst he is browsing around the site.

Can anybody please shed some light on this or refer me to some example code which does exactly this?

Thanks,
Matthew
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 501
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
Join Date: Oct 2009
Posts: 3
Reputation: matthewcar is an unknown quantity at this point 
Solved Threads: 0
matthewcar matthewcar is offline Offline
Newbie Poster
 
0
  #3
Oct 24th, 2009
Thanks for your reply adatapost, however those 2 sites are useless to me.

I only would like to track and store the mouse cursor positions and time durations in seconds on normal/standard user browsers and don't need to use DOM.

If anybody else has any better ideas or links, I would really appreciate it if you could give a helping hand.

Thanks,
Matthew
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 7
Reputation: ITSVPS is an unknown quantity at this point 
Solved Threads: 1
ITSVPS ITSVPS is offline Offline
Newbie Poster
 
0
  #4
Oct 25th, 2009
Originally Posted by matthewcar View Post
Thanks for your reply adatapost, however those 2 sites are useless to me.

I only would like to track and store the mouse cursor positions and time durations in seconds on normal/standard user browsers and don't need to use DOM.

If anybody else has any better ideas or links, I would really appreciate it if you could give a helping hand.

Thanks,
Matthew
Sounds like you're looking to have JavaScript mouseover + mouseout call a WCF web service which logs your data to the DB. Here's two links that WILL help you:

Check for Mouseover and Mouseout on here:
http://www.quirksmode.org/js/events_mouse.html

Calling a WCF service from JavaScript:
http://dotnetbyexample.blogspot.com/...avascript.html

With those two you should be able to accomplish what you're trying to do.
ITSVPS.com Virtual Servers - Cutting edge technology, first class network, affordable prices! Managed and unmanaged. Virtual and Dedicated. Shared hosting, web design, application development, and more. Contact us here, or our website!
Reply With Quote Quick reply to this message  
Reply

Tags
ajax, asp, mouse, tracking

Message:




Views: 784 | Replies: 3
Thread Tools Search this Thread



Tag cloud for ajax, asp, mouse, tracking
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC