Oliver Pechey
Posts: 0
Joined: Wed Sep 04, 2013 3:26 pm

Javascript Syntax Error

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

Oliver Pechey
Posts: 0
Joined: Wed Sep 04, 2013 3:26 pm

Javascript Syntax Error

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Javascript Syntax Error

Hi Oliver,

How do you create a string with data?

Oliver Pechey
Posts: 0
Joined: Wed Sep 04, 2013 3:26 pm

Javascript Syntax Error

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Javascript Syntax Error

Oliver,

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

Oliver Pechey
Posts: 0
Joined: Wed Sep 04, 2013 3:26 pm

Javascript Syntax Error

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Javascript Syntax Error

Hi Oliver,

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

Oliver Pechey
Posts: 0
Joined: Wed Sep 04, 2013 3:26 pm

Javascript Syntax Error

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"

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Javascript Syntax Error

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.

Oliver Pechey
Posts: 0
Joined: Wed Sep 04, 2013 3:26 pm

Javascript Syntax Error

It's working perfectly now. Thanks :)

Return to “Issues”