Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Track user activity on a shopping cart  RSS feed

 
Poornima Jerath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an online shopping cart. One of the requirements is to track which input field did the user last enter data on.
For example user is on checkout page and left the page(closed browser etc) and the last field they entered data on that page was credit card input box. I want to be able to know this. How can this be done?

Thank you so much in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is this useful? You won't have the other values that the user has filled in up to this pint, so how would it be helpful to skip over all those empty fields?
 
Poornima Jerath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:How is this useful? You won't have the other values that the user has filled in up to this pint, so how would it be helpful to skip over all those empty fields?



We may or may not have other values filled in.

For example -

1) I can enter expiry date and credit card and leave the page
2) I can enter credit card only and leave the page.

In either scenario i would need to know what they last entered. I am not questioning the need to do this as its a business requirement, just looking to give a possible solution.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then why not just set the focus to the first empty field rather than trying to "remember" things?
 
Pongsakorn Semsuwan
Ranch Hand
Posts: 34
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe this is for some kind of user behavior research
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!