Tim5052033
Posts: 0
Joined: Wed Sep 26, 2012 5:27 am

Invoking Rest service causing page content to disappear

The issue appears to be re-appearing when I add the follow JS to a localStorage response mapping:

var temp = JSON.stringify(value);
console.log(temp);
temp = localStorage.getItem('allPartTasks') + temp;
localStorage.setItem('allPartTasks', temp);

I'm trying to take the array of responses and append each (in text format) to a local variable for use on the next page where it's broken back up into objects.

Thanks,

Tim

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Invoking Rest service causing page content to disappear

Check in the console if all the rows are printed...

Tim5052033
Posts: 0
Joined: Wed Sep 26, 2012 5:27 am

Invoking Rest service causing page content to disappear

They note - it seems that it's leaving a JS method and not starting the next one with - despite the event.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Invoking Rest service causing page content to disappear

Leaving a JS method - what does it mean?

Tim5052033
Posts: 0
Joined: Wed Sep 26, 2012 5:27 am

Invoking Rest service causing page content to disappear

I'm explaining this terribly. I had some errors in my javascript which was halting execution.

It's running to competition but I'm still getting the Grey box. It goes the moment I remove the javascript I mentioned above. Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Invoking Rest service causing page content to disappear

I think it's failing because you mapped an array to a single local storage variable and running JavaScript code. If you need to save the entire array into local storage, map it to a grid, then make the grid invisible. Add the JavaScript there.

Tim5052033
Posts: 0
Joined: Wed Sep 26, 2012 5:27 am

Invoking Rest service causing page content to disappear

Makes sense. Will give it a try - thanks for the quick response Max. Really makes a huge difference when the frustration kicks in. Much appreciated.

Return to “Issues”