Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

clear textinput on screenload

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

clear textinput on screenload

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

clear textinput on screenload

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

clear textinput on screenload

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

clear textinput on screenload

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

clear textinput on screenload

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

clear textinput on screenload

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

clear textinput on screenload

Hi Michael,

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

clear textinput on screenload

OK Katya,
I understand, it all a mess now

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

clear textinput on screenload

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

Return to “Issues”