javascript - sending JSON string from one HTML page to another -


i know might sound silly , easier alternative convert pages php. there way in html javascript or jquery?

i want sending json string 1 html page another.

in first.html there set of images gets converted json string looks this:

{"images":[ {"src":"images/en1.png"}, {"src":"images/en4.png"}, {"src":"images/en2.png"}, {"src":"images/fr4.png"}, {"src":"images/b40.png"}, {"src":"images/ca7.png"} ]} 

i want send second.html , in there button called edit take first.html

is there way or impossible?

you use querystring that

something like

 <a href='second.htm?images={"images":[ {"src":"images/en1.png"},{"src":"images/en4.png"},{"src":"images/en2.png"},{"src":"images/fr4.png"},"src":"images/b40.png"},{"src":"images/ca7.png"}]}' > go second page </a> 

and on second.htm can value using

window.location.href 

Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -