NetTalk Central

Author Topic: mobile and desktop alert questions  (Read 2630 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
mobile and desktop alert questions
« on: November 13, 2013, 10:04:48 PM »
Pretty well finished with my mobile application, only the alert messaging to sort out
If I use
loc:Alert = 'Unknown Login Name. Try again.'
I get the desktop result on my login form as shown in Alert1.jpg
when I set to mobile mode I get the result in alert1a.jpg
Question1
This is the section highlighted in firebug in mobile
<div id="alert_div" class="nt-width-99 alert ui-state-error ui-corner-all nt-inline">Unknown Login Name. Try again.</div>
adding red into the class gives me the result I want but I can't seem to get this accepted in my css file
I have done this
.alert_div {
 red
 }
What should I have done?
Question2
In an entry field I do a validation of a field
If it fails I can use either
loc:Alert = 'Invalid ID Number.'
or       
p_web.SetAlert('Invalid ID Number.',1,'PolicyNewMobileA_FORM')
and I get the result in alert2.jpg
The problem here is I am not getting the message appearing in red near View policy details as I do in alert1.jpg for the login screen
This is not a major issue in desktop mode but when I change to mobile this become a major issue since the popup doesn't appear and the message at the top doesn't appear either (alert3.jpg)

How do I get an error message to appear?



[attachment deleted by admin]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11242
    • View Profile
Re: mobile and desktop alert questions
« Reply #1 on: November 15, 2013, 02:01:52 AM »
short answer is - I don't know. I'll have to play a bit to find out. I suspect the handling is fairly different in mobile mode.

cheers
Bruce

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: mobile and desktop alert questions
« Reply #2 on: November 18, 2013, 01:54:12 AM »
So does this mean there is no way in mobile to use immediate validation on a field to advise the user of an error at that point, I have to wait for him to press save at which point the message appears at the top of the form for each field which has failed.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: mobile and desktop alert questions
« Reply #3 on: November 19, 2013, 01:27:07 AM »
To illustrate that this is not only a mobile issue I attach a modified example3
In validate value login I have inserted the same code that is used if the login and password comparisons fail, except changing the alert wording to "Login name failed" rather than "login failed".
If a login is entered which doesn't have the character x in it immediately after moving off the login it will display the alert popup but  no red background error.
Clicking on the login button will display both the alert popup and the red background error.
Since the embedded code is exactly the same what validation happens when I click the save button that does not happen when I move off an invalid field?
   


[attachment deleted by admin]
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186