Page 1 of 2

Javascript Syntax Error

Posted: Wed Sep 18, 2013 11:29 am
by Oliver Pechey

Hi there. As you can see I am trying to send multiple local storage variables using the sendgrid plugin. However I am getting a javascript error.

Any help would be appreciated!

Image

Image

Image


Javascript Syntax Error

Posted: Wed Sep 18, 2013 11:53 am
by Oliver Pechey

I have figured it out. Was using '' instead of " silly me!

However when the email comes through, the date is listed as mm/dd/yy instead of 09/18/13

Any ideas?


Javascript Syntax Error

Posted: Wed Sep 18, 2013 12:47 pm
by Kateryna Grynko

Hi Oliver,

How do you create a string with data?


Javascript Syntax Error

Posted: Wed Sep 18, 2013 1:10 pm
by Oliver Pechey

I'm not brilliant with code, so I can't answer your question.

However everything seems to work, all the other data is sent other than the date.


Javascript Syntax Error

Posted: Wed Sep 18, 2013 1:14 pm
by Kateryna Grynko

Oliver,

Glad it's working. If you find where you generate email text I can take a look.


Javascript Syntax Error

Posted: Wed Sep 18, 2013 1:21 pm
by Oliver Pechey

Hi there, I am unsure of what you mean. Do you mean you want to see the email output? I have included a screenshot, as you can see all data is being sent fine other than the date field.

Image


Javascript Syntax Error

Posted: Thu Sep 19, 2013 7:15 am
by Kateryna Grynko

Hi Oliver,

We would like to know how you create the data (how you get it) and how you save it in localStorage.


Javascript Syntax Error

Posted: Thu Sep 19, 2013 3:14 pm
by Oliver Pechey

I use an input with the date format. I have a button that has an event that when clicked saves the value into the local storage variable called "date"


Javascript Syntax Error

Posted: Thu Sep 19, 2013 3:49 pm
by Maryna Brodina

Hi, on what Property name you bind setting of localStorage variable? Is that Date format? If so then you need to use Date value instead.


Javascript Syntax Error

Posted: Thu Sep 19, 2013 4:15 pm
by Oliver Pechey

It's working perfectly now. Thanks :)