mardi 7 avril 2015

Pass javascript array to another page


Vote count:

0




I was wondering if theres a way to pass an array and its contents to another page for use.


I am using an array to store coordinates that are being used to draw a polyline onto a google map. The array works fine on one page, however when i attempt to call the array to draw the polyline points on another map, it appears the array has been emptied and no polyline points are drawn.


I have attempted to use localStorage with JSON stringify but came across many many issues where google maps wont accept the values ether because they contain values its not expecting, or because it simply cant recognise the format.



asked 1 min ago







Pass javascript array to another page

Aucun commentaire:

Enregistrer un commentaire