NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Devan on July 19, 2012, 05:04:29 PM

Title: Change 'Save' button text in Mobile?
Post by: Devan on July 19, 2012, 05:04:29 PM
When using a login form on my NetTalk apps, I do the trick suggested by the demo's to change the normal 'Save' button on the form to say 'Login' by doing the following:

p_web.site.SaveButton.TextValue = 'Login'

Works like a charm on a desktop browser, but on Mobile browsers, the button on the header still says 'Save'.  How can I get the mobile interface to display a different text on that button?



As an addendum to this question - I have some Clarion code in the Validate::LOC:Password routine on the login form.  Once again, it works fine on the desktop browsers, but on the mobile browser, the validation code does not seem to get called at all when the user taps off the password field?!?

EDIT2: Now I realise the validation code IS getting called, but the server is not picking up the value of the form field.  i.e. p_web.GSV('LOG:Login') is returning a blank when using the web browser, but returning a value when using the desktop browser... ?!?

EDIT3: It's a terrific day for answering my own questions again - but I just realised that I had Cookies disabled on my iPhone Safari browser which was causing the session variables NOT to be preserved in between tapping on different fields.  Enabled cookies and it all works now.  Still got the question on the button text though... :)

Thanks!
Title: Re: Change 'Save' button text in Mobile?
Post by: kevin plummer on July 19, 2012, 09:28:38 PM
try this for your original question

http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=3003.msg10343#msg10343 (http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=3003.msg10343#msg10343)
Title: Re: Change 'Save' button text in Mobile?
Post by: Devan on July 22, 2012, 05:10:45 PM
Ah! Thanks Kevin - that did indeed answer my question.  Never realised there was a 'MobileText' property there too... :)