Unsafe window?

Get help using Construct 2

Post » Mon Jul 02, 2012 2:02 am

Is it possible to pull variables off of an iframed web page like the grease monkey unsafewindow for Firefox? I would like to make an addon for an HTML game by pulling variables and utilizing functions on the page. I can code it using grease monkey but I'd rather build an app using my licensed c2. Any ideas on how to go about doing it?
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Mon Jul 02, 2012 6:14 am

B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Mon Jul 02, 2012 12:43 pm

If the iframe URL is on the same domain as the parent page and does not sandbox it, you should have full access to the parent page's variables. MDN's documentation should tell you more.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578


Return to How do I....?

Who is online

Users browsing this forum: WhosWho and 19 guests