Page 1 of 1

store html to local storage variable problem

Posted: Thu Jun 12, 2014 8:07 am
by Ahmad Alkhouly

Hello,

I have a problem with local storage variables That I can not store any "html code" in a local "_node_body_html" variable.

my "html code" - retrieves from REST (XML Feed Url).

is there a problem with html and local storage?
and how can I transferring or adding html to a Component.

my testing targeting components was; html and normal labels...

Thank you very much for help and
best regards.


store html to local storage variable problem

Posted: Thu Jun 12, 2014 9:02 am
by Kateryna Grynko

Hi Ahmad,

You could add mapping to a localStorage variable or add a service Success event (its response is available in a variable 'data' that you can save in localStorage).


store html to local storage variable problem

Posted: Thu Jun 12, 2014 10:01 am
by Ahmad Alkhouly

Thank you very much for your help its works fine now.

also I get a problem from "Service Settings" That If I do not enabled Appery Proxy,
service items will not shown.

is is ok on production environment ?

thanks and regards


store html to local storage variable problem

Posted: Thu Jun 12, 2014 11:30 am
by Kateryna Grynko

Hi Ahmad,

Yes. This is because cross-domain calls are executed: http://devcenter.appery.io/documentat...

Just create your proxy: http://devcenter.appery.io/documentat...

You won't need to enable proxy for a ready app, it will work properly without it.