I would like to create a button that records date and time in the browser, when the user clicks it and then send that information to a django db.
1.db part: Would the db field I save it to best be a DateTimeField() or a CharField()? I want the exact date and time of that button clicked?
- jQuery part: I heard (here) that jQuery can accomplish to record the exact time when the button was clicked. I am not familiar with jQuery and have the basics in javascript. But what I would like to know is why/how jquery and/or javascript is able to record when the user clicks, while in django that would be when the server gets the info.
I would like to be able to record all sorts of click behavior in browser and therefor my question.
Also if somebody could give me an example roundtrip on this. That would be the max.
Thanks!