php - Storing KineticJS json string in mySQL and then get it with other page to reload the canvas -
i hope understand problem is...
i built little t-shirt-shop kineticjs.
i store stage tojson() in json-string , save in mysql database.
now when try string other page database , insert string kineticjs function
var stage = kinetic.node.create(json, 'container');
it doesn't work.
the curious thing when database , copy whole string directly javascript work. fact string database javascript, save in variable , try use gets me "unexpected token" error.
make sure "json" variable string, not object.
otherwise, make string:
json.stringify(json);
Comments
Post a Comment