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

clear textinput on screenload

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

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

clear textinput on screenload

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

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

clear textinput on screenload

There was a mistake, sorry about that.

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

clear textinput on screenload

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

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

clear textinput on screenload

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

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

clear textinput on screenload

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.

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

clear textinput on screenload

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.

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

clear textinput on screenload

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

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

clear textinput on screenload

Hi Katya,
this is sorted

thx for the support

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

clear textinput on screenload

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

Return to “Issues”