Page 1 of 1

Custom page doesn't load data

Posted: Friday 01 July 2016 11:53
by rednas
Hello,

I am currently trying to make the default Custom.html example work. However, it doesn't fire the getJSON part of the javascript.
I edited the array with devices and just created one which is in my own Domoticz and edited the roomplan and domoticz url.
With console.log I confirmed the url which JSON requests and when I enter this url into my browser I can see that it's returning the right devices, so the url is working.
I also tried adding this:

Code: Select all

	.done(function() { alert('getJSON request succeeded!'); })
	.fail(function(jqXHR, textStatus, errorThrown) { alert('getJSON request failed! ' + textStatus); })
	.always(function() { alert('getJSON request ended!'); })
But the getJSON does nothing! None of the alerts are fired and just nothing happens with the getJSON function..
Do I need to change something on the raspberry pi to make it work?

Thanks in advance!