Page 1 of 1

Transfer variables to an appery.io app

Posted: Thu Jul 30, 2015 1:59 pm
by Olivier

Is it possible to transfer variables to an appery.io app if it's running in the browser?

I for example would like to send an '?referer=string' variable from the webpage to the app startpage, after which the variable can be used in the app to influence behaviour (e.g. change layout).

Is there a solution to achieve this?


Transfer variables to an appery.io app

Posted: Thu Jul 30, 2015 3:46 pm
by Pavel Zarudniy

Hi Olivier,
To access url params from js try to use window.location - http://www.w3schools.com/js/js_window...


Transfer variables to an appery.io app

Posted: Fri Jul 31, 2015 6:13 am
by Olivier

Hi Pavel,
Thanx. I understand I can use this to get variables from a webpage (url). But does this work if it's an external webpage (not part of the appery.io pages/app?). I don't see how the appery.io page can use the variables of the page before (not appery.io). Could you help me with this?


Transfer variables to an appery.io app

Posted: Mon Aug 03, 2015 8:50 am
by Serhii Kulibaba

Hello Oliver,

You can read URL parameters as shown here: https://css-tricks.com/snippets/javas...