Page 6 of 9

clear textinput on screenload

Posted: Thu May 23, 2013 11:11 am
by Maryna Brodina

Hi, did you change your app name nfb3 to any other name? Do you still share it with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?


clear textinput on screenload

Posted: Thu May 23, 2013 1:28 pm
by Maryna Brodina

Hi, Michael! The issue is that you have a lot of JS files on Load event on Book page. When you open that page it takes time while files loading. As a workaround check "Render all pages in one HTML file (jQuery Mobile multi-page template)" (in this case Load event is running only first time you open app on Start screen), also you would need to move that actions (on Book page) from Load to Page show event. We teated with iPhone 4 (iOS 6.1.2) - it works as expected - no "squashed together" components.


clear textinput on screenload

Posted: Thu May 23, 2013 1:40 pm
by Michael4771079

ok Marina,
thanks for that, I'll give it go


clear textinput on screenload

Posted: Thu May 23, 2013 1:58 pm
by Maryna Brodina

One more thing - you would need to move all actions on all screens from Load to Page show event (except splash screen).


clear textinput on screenload

Posted: Wed Jun 05, 2013 10:11 am
by Michael4771079

Hi Marina,
I have altered the app to run a 1 html and it solved the issue

however my saving to companiesArray and db isn't working, the app reads the db on page show but when I make a new entry it saves to the component but not the db

the same problem with addresses array _name

the js I have to clear the time and date fields is not working on page show

this was all working but the app was refused because of the squashing components,
help please, I can share if you need

thx Marina


clear textinput on screenload

Posted: Wed Jun 05, 2013 10:41 am
by Maryna Brodina

Hello! Yes, please share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.


clear textinput on screenload

Posted: Wed Jun 05, 2013 10:45 am
by Michael4771079

cheers Marina,
your a life saver, this was my last job to do before submission to apple
app is called paylo2 and is shared


clear textinput on screenload

Posted: Wed Jun 05, 2013 6:22 pm
by Kateryna Grynko

Hi Michael,

We are working on it, but this will take some time.


clear textinput on screenload

Posted: Wed Jun 05, 2013 6:33 pm
by Michael4771079

OK Katya,
I understand, it all a mess now


clear textinput on screenload

Posted: Thu Jun 06, 2013 8:42 am
by Maryna Brodina

Hello!
1) In your service user_update fields addresses and taxicompanies are arrays. You need to send array while any service call on any page. So in JS in request parameter addresses should be codereturn JSON.parse(localStorage.getItem("companiesArray"));/code
and in taxicompanies request parameter codereturn JSON.parse(localStorage.getItem("variable_name"));/code
It should be on every page where you use user_update servise: Addresses, Profile, startScreen, Taxicompanies

2) you have an error in app logic - for example on page Taxicompanies everything is correct - you call setSelectMenuOptionsv on services Complete event, but on page Addresses you call setSelectMenuOptionsForAddresses on Success and Load event (Load event is unnecessary)

3) "the js I have to clear the time and date fields is not working on page show" -- on "book" page on Page Show event run JS:
codeif (prevPageName == 'Mobiscroll') {
Tiggzi("timeinput").val(localStorage.getItem("selectedTime"));
Tiggzi("dateinput").val(localStorage.getItem("selectedDate"));
} else {
Tiggzi("timeinput").val("");
Tiggzi("dateinput").val("");
}/code
instead of
codeif (prevPageName == 'Mobiscroll') {
Tiggzi("timeinput").val(localStorage.getItem("selectedTime"));
Tiggzi("dateinput").val(localStorage.getItem("selectedDate"));
}/code