2010-06-06, 12:15
Thanks for the answer Just got confused cause bram already wrote the method in his java script library but seems he's just guessing
jbrennan Wrote:Having a little trouble getting the development webpage to load. I've got a copy of XBMC running which I built from svn, on Mac OS 10.6, and the JSON RPC is working, however when I try to visit http://localhost:8888/development.html I get "File not found" (just text, it's not my browser's error message) (port 8888 is where I'm running xbmc on this machine). If I try get http://localhost:8888/jsonrpc I get the message that it's up and running.
I'm having other issues but I figure I should get this one solved first, as it might solve my other problems.
ls -la /usr/share/xbmc/web/
total 84
drwxrwxrwx 3 root root 4096 Jun 6 23:11 .
drwxr-xr-x 11 root root 4096 Jun 6 23:11 ..
-rw-r--r-- 1 root root 1706 Jun 6 23:11 albums.html
-rw-r--r-- 1 root root 2434 Jun 6 23:11 artists.html
-rw-r--r-- 1 root root 793 Jun 6 23:11 basic.css
-rw-r--r-- 1 root root 1508 Jun 6 23:11 development.html
-rw-r--r-- 1 root root 1878 Jun 6 23:11 help.js
drwxr-xr-x 2 root root 4096 Jun 6 23:11 images
-rw-r--r-- 1 root root 383 Jun 6 23:11 index.html
-rw-r--r-- 1 root root 17422 Jun 6 23:11 json.js
-rw-r--r-- 1 root root 2141 Jun 6 23:11 movies.html
-rw-r--r-- 1 root root 3069 Jun 6 23:11 musicfiles.html
-rw-r--r-- 1 root root 3517 Jun 6 23:11 nowplaying.html
-rw-r--r-- 1 root root 2337 Jun 6 23:11 tvshowepisodes.html
-rw-r--r-- 1 root root 1364 Jun 6 23:11 tvshows.html
-rw-r--r-- 1 root root 2033 Jun 6 23:11 tvshowseasons.html
-rw-r--r-- 1 root root 3057 Jun 6 23:11 videofiles.html
http_request = new XMLHttpRequest();
http_request.open( "POST", "jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "' + player + 'Playlist.GetItems", "params": { "fields": ["title", "plot"] }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);