Web UI/JSON problem

Hi there,

I’m currently developing a webinterface to interact with a Vera controller. The webinterface is ment to be a simpler version of UI4. The webinterface will be running on a website and that causes me some problems. The problem is that i can’t request data using this url:

https://fwd1.mios.com/xxx/xxx/xxx/data_request?id=lu_sdata

The browser shows the JSON data fine, but when I use that URL inside my code which runs at an another server, it won’t fetch the data. I think the problem is due to browser security restrictions. If I download the contents (php: file_get_contents()…) and decode the data it works fine. Is that really the only way to do this? There must be a better option. I’ve read something about JSONP which should be able to do the trick, but it seems that MIOS doens’t work that way.

Anyone having same problem or know a better solution?

Nobody? ::slight_smile:

I’m not a php expert, but does this help [url=http://www.howtogeek.com/howto/programming/php-get-the-contents-of-a-web-page-rss-feed-or-xml-file-into-a-string-variable/]http://www.howtogeek.com/howto/programming/php-get-the-contents-of-a-web-page-rss-feed-or-xml-file-into-a-string-variable/[/url]