Page 3 of 3

Using Sendgrid in a list

Posted: Thu Oct 23, 2014 2:45 pm
by Mike6979865

Hello, this is the code that I tried below. Unfortunately, it didn't work... Here's a screenshot of the actions that occur on button click as well.

Image

Image

In the database, the image is stored in a string field. It display fine on the screen. For example, in the image field: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj...

var res = "",
listItem = $(this).closest('[name="mobilelistitem_25"]'),
name = $('[name="name"]', listItem ).text(),
email = $('[name="email"]', listItem ).text(),
image = localStorage.getItem('picture'),

data = {
"Time Stamp": timestamp ? timestamp : "",
Name: name ? name : "",
Email: email ? email : "",
Image: image ? "a href="http://\" + image +\"" rel="nofollow"Image Link" : "",
},
ii;
for (ii in data){
if (data[ii] !== ''){
res += "span" + ii + "/span : span " + data[ii] + "/span";
}
}
res += "";
localStorage.setItem('email',res);
/a


Using Sendgrid in a list

Posted: Thu Oct 23, 2014 6:26 pm
by Evgene Karachevtsev

Hello Mike,

Could you please clarify, what exactly doesn't work? base64 doesn't add to the variable res?


Using Sendgrid in a list

Posted: Thu Oct 23, 2014 7:07 pm
by Mike6979865

Hi Evegene,

I'll email you since it may contain sensitive information.


Using Sendgrid in a list

Posted: Thu Oct 23, 2014 7:12 pm
by Evgene Karachevtsev

Mike,

Sure.