Page 3 of 4

Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 5:07 pm
by gonadn

Oki , iam still strugling to find out why it is not working, by debuging in firebug i can see that html for the detail page and js is not loading up.....


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 5:24 pm
by maxkatz

What exact JavaScript is not loading...?


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 7:54 pm
by gonadn

sorry, i was wrong. The service is invoking, because i get the result and it shows the title of Activity, but only the first record from db/json. It shoud display "kickboksing" if i click that, but what ever i click on it shows me "Helsestudio". So service is invoking but passing aktID as parameter and get result is not working....


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 8:14 pm
by gonadn

can you please check what is wrong with my service, it is invoking but not giving correct result.


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 11:07 pm
by gonadn

HI Max

Service is invoking, and it seem like it is returning the correct result. But now something out of the blue happend and it is not rendering the data on details page. If i look at firebug, se pic:
Image

this result iam getting when i click on listitem Barnekurs, so it looks like service is invoking correct, but data is not rendered correct.

I will appriciate if you could take a look at it, ihave been stucked with this issue, and soon is demo day and i have to demonstrate for my customer....


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 11:10 pm
by maxkatz

What is rendered on the page?


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 11:17 pm
by gonadn

page is blank, i have to labels there, one for showing the aktitet name, another label is for showing prise.


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 11:19 pm
by maxkatz

How does your service response mapping look? Are you invoking the service on page load?


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 11:23 pm
by gonadn

yes iam invoking the the service on page load....
My mappings look like:
Image Image


Building a Clickable List App with HTML5 Database Storage

Posted: Sun Apr 07, 2013 11:43 pm
by gonadn

// screen onload
screen_89D2_onLoad = j_34_onLoad = function() {
screen_89D2_elementsExtraJS();
try {
PriseDetailService.execute({})
} catch (ex) {
console.log(ex.name + ' ' + ex.message);
hideSpinner();
};
j_34_deviceEvents();
j_34_windowEvents();
screen_89D2_elementsEvents();
}