NetTalk Central

Author Topic: Field validation on desktop vs mobile  (Read 2467 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Field validation on desktop vs mobile
« on: September 08, 2013, 11:17:57 PM »
We have a very specific login screen on one of our NT7 apps.  As well as the username and password on the login screen, there is a drop down box under those for the user to choose the company before they do a 'proper' login to the system.

Now, the list of companies that each user can select from is actually dependent on their login, and for this reason, we do a quick login check as soon as the user enters their password and the password field loses focus.

We accomplish this by putting some embed code in the LOC:Password Field -> Validate::LOC:Password Routine.

It works beautifully on the desktop versions of the site.  The embedded code gets called every time the user clicks anywhere else on the screen, including if they click on the drop down.  The validation code builds the drop down contents quickly based on their login name/password.

However - it doesn't ALWAYS work on the mobile version of the site there is about a 50/50 chance that the validation code does not get called.  I am assuming that this is because NT/jQuery handle taps on mobile screens differently to clicks/pressing the tab key on the desktop screen?

What is the best point to call the validation routines when the Password field loses focus on the mobile version of the site?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Field validation on desktop vs mobile
« Reply #1 on: September 09, 2013, 09:32:12 PM »
there should be no difference between the desktop and mobile in this configuration.
the key thing to note though is that;
a) no event is triggered if the user tabs off the password field without entering, or altering whats there already.
b) I presume you're watching the server-side to see if the _request_ comes though? as distinct from checking to see if a response is sent back to the browser?
c) what build of Nt7?
d) can you duplicate in firefox, but when your app is running in mobile mode?

cheers
Bruce