Access webstorage from outside

Get help using Construct 2

Post » Thu Aug 02, 2012 11:55 pm

I try to set a score to webstorage, I tried both local storage and session storage.

I would like to set the score, redirect the page and then access the session/local variable using javascript.

It should be like SessionStorage.getItem("score")

but not working, anyone?
B
5
Posts: 9
Reputation: 618

Post » Fri Aug 03, 2012 2:48 am

Local Storage is domain-based.

I think it needs to create new plugin which allows cross domain using XAuth.
B
96
S
25
G
20
Posts: 3,053
Reputation: 22,640

Post » Fri Aug 03, 2012 11:59 am

If the new page is still on your domain, you can access it through Javascript using session storage with the same key names as used in C2.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554


Return to How do I....?

Who is online

Users browsing this forum: HeinRich, Zakeru and 24 guests