Page 2 of 2

Listitem in sendgrid email

Posted: Fri Aug 21, 2015 2:21 pm
by Johnny7459624

With both types of code i get Failed to load resource: the server responded with a status of 400 (Bad Request)
Image


Listitem in sendgrid email

Posted: Fri Aug 21, 2015 2:30 pm
by Johnny7459624

Even this code you helped with give that error.

var someStorage = Apperyio.storage.stuffList.get();
var storageText = JSON.stringify(someStorage);
return "JSON value for the items = " + storageText;


Listitem in sendgrid email

Posted: Sat Aug 22, 2015 3:42 pm
by Johnny7459624

Also tried this:

var arrayText = localStorage.getItem("stuffList");
var storageText = JSON.parse(arrayText);
Appery('txttoets').val(storageText);

But return this:
[object Object],[object Object],[object Object],[object Object],[object Object],


Listitem in sendgrid email

Posted: Sun Aug 23, 2015 7:19 am
by Serhii Kulibaba

Johnny, could you show us screenshots of the request data from the browser's network tab?


Listitem in sendgrid email

Posted: Sun Aug 23, 2015 8:15 am
by Johnny7459624

Ok With the code you provide me at the beginning:

var someStorage = Apperyio.storage.stuffList.get();
var storageText = JSON.stringify(someStorage);
return "Prayer List = " + storageText;

Image


Listitem in sendgrid email

Posted: Sun Aug 23, 2015 8:17 am
by Johnny7459624

I tried all kind of code :) but im stuck and would really appreciate your help.


Listitem in sendgrid email

Posted: Tue Aug 25, 2015 6:10 am
by Johnny7459624

Hi there

I really struggle here. Can you help me out please. I also contact you via priority email.


Listitem in sendgrid email

Posted: Wed Aug 26, 2015 9:43 am
by Johnny7459624

I know i must do somthing like

var dataString = localStorage.getItem("stuffList");
var data = JSON.parse(dataString);

I read almost all the post about this :(


Listitem in sendgrid email

Posted: Wed Aug 26, 2015 9:51 am
by Johnny7459624

Almost there :)

var dataString = localStorage.getItem("stuffList");
var data = JSON.parse(dataString);
for(var i=0; i);
}


Listitem in sendgrid email

Posted: Thu Aug 27, 2015 11:43 am
by Johnny7459624

YAY I got it working :)

this was my working line:
arr = (data.text +"\n");

Thats all I need help with. Dont know why you not answering me on priority mail or here.

But sure you have you reasons. anyway thx