Page 7 of 9

clear textinput on screenload

Posted: Thu Jun 06, 2013 10:22 am
by Michael4771079

Thanks Marina,

address array is now working properly on addresses screen
Taxicompanies array is working on taxicompanies screen

I have made the changes you suggested and I have replaced js for mobiscroll.

when I open Booking screen all components are frozen,

in firebug I get this error

Image


clear textinput on screenload

Posted: Thu Jun 06, 2013 10:24 am
by Maryna Brodina

Please take a look at my comment again (I updatet it).


clear textinput on screenload

Posted: Thu Jun 06, 2013 10:24 am
by Maryna Brodina

There was a mistake, sorry about that.


clear textinput on screenload

Posted: Thu Jun 06, 2013 10:39 am
by Michael4771079

Hi Marina,
no probs,
I made the change but I am still getting the error


clear textinput on screenload

Posted: Thu Jun 06, 2013 11:01 am
by Maryna Brodina

The code should be
codevar prevPageName = '';
if(arguments[1]["prevPage"][0]) {
prevPageName = $(arguments[1]["prevPage"][0]).attr("dsid");
}
if (prevPageName == 'Mobiscroll') {
Tiggzi("timeinput").val(localStorage.getItem("selectedTime"));
Tiggzi("dateinput").val(localStorage.getItem("selectedDate"));
} else {
Tiggzi("timeinput").val("");
Tiggzi("dateinput").val("");
}/code


clear textinput on screenload

Posted: Thu Jun 06, 2013 11:55 am
by Michael4771079

great Marina,
all item back in working order,

But nowI have 3 items on bookings that set property onload "email name mobile"

the items are in the dom, but they dont show up for sendgrid, I get error "missing from email"

I tried deleting onload and tried pageshow event but this didn't help,
Is there another event or js I should use.


clear textinput on screenload

Posted: Thu Jun 06, 2013 3:42 pm
by Kateryna Grynko

Hi Michael,

If the fields "email", "name", "mobile" are not changed and can be set once then you can use page Load event, otherwise you should use page Show event.

You see an error because you don't set Input "To" anywhere.


clear textinput on screenload

Posted: Thu Jun 06, 2013 5:21 pm
by Michael4771079

I am sorry I don't understand
"You see an error because you don't set Input "To" anywhere."

all 3 fields are set the same way
all 3 variables are in the dom
name and mobile are collected with js code along with the other components and all are in error code in console, the only error is the from email
with the component name of Frominput and variable called frominput

but with setproperty or page show I cannot get the variable to populate the component


clear textinput on screenload

Posted: Thu Jun 06, 2013 8:49 pm
by Michael4771079

Hi Katya,
this is sorted

thx for the support


clear textinput on screenload

Posted: Fri Jun 07, 2013 9:56 am
by Michael4771079

Hi Marina,
I am still having a great deal of probs running this app as one html file, the apps logic was done with separate pages in mind,

running in one html sloved the squashed components but has prevented the apps functions to work properly.

so if we can not find another solution with css for the squashed components that lets the app function properly I will have to submit it to apple and see if it goes through, I expect that it wont as it just looks crap