coollector.com https://www.coollector.com/ |
|
HTML export https://www.coollector.com/viewtopic.php?f=1&t=1020 |
Page 2 of 2 |
Author: | (cool) Hector [ Sun Nov 11, 2012 1:05 pm ] |
Post subject: | Re: HTML export |
I still don't see the connection with Coollector |
Author: | kakashi [ Sun Nov 11, 2012 1:13 pm ] |
Post subject: | Re: HTML export |
(cool) Hector wrote: I still don't see the connection with Coollector The idea was to use the exported data files from coollector as the data source for the web app. |
Author: | (cool) Hector [ Sun Nov 11, 2012 1:35 pm ] |
Post subject: | Re: HTML export |
kakashi wrote: The idea was to use the exported data files from coollector as the data source for the web app. That's what I thought, but I fail to see how it's worth all your hard work. Isn't it easier to just use Coollector ? Or XBMC ? Why do you need a web interface ? Are you trying to access your files from the internet when you're not home ? Or to give access to your friends ? |
Author: | kakashi [ Sun Nov 11, 2012 2:13 pm ] |
Post subject: | Re: HTML export |
(cool) Hector wrote: Or XBMC ? I use XBMC sometimes. (cool) Hector wrote: That's what I thought, but I fail to see how it's worth all your hard work. Not that much work... (cool) Hector wrote: Are you trying to access your files from the internet when you're not home ? Or to give access to your friends ? My home network has quite a few pc's operating on it. |
Author: | (cool) Hector [ Sun Nov 11, 2012 2:27 pm ] |
Post subject: | Re: HTML export |
kakashi wrote: My home network has quite a few pc's operating on it. Well, all your PCs could have Coollector installed, and your coollection file could be shared on the network. Anyway, I will improve the export feature soon, and you'll do whatever you want with it |
Author: | kakashi [ Mon Nov 12, 2012 3:26 am ] |
Post subject: | Re: HTML export |
Sorry but i cant leave without first defending JSON. w3schools wrote: When Coollector generates a json file it in essence declares a javascript array containing all the relevant information. All that is really necessary to display the information is to simply assign the values in the array to a HTML object ( in this case <div id="movies"></div> ). Code: document.getElementById('list_desc').innerText=listdesc + ':'; for(i=0 ; i<moviecount ; i++) document.getElementById('movies').innerHTML+= '<div class="movie"><p class="title">' + movies[i].title + '</p><img class="poster" src="' + imagefolder + movies[i].imglocation + '"></div>'; The 2 lines of code above (3 if you count the for loop separately) will create all the necessary HTML objects and fill them with the relevant information. Attachment: The resulting HTML template is only 1.5kb in size and already contains styling information and the four required lines of JavaScript. Attachment:
|
Author: | (cool) Hector [ Mon Nov 12, 2012 10:57 am ] |
Post subject: | Re: HTML export |
kakashi wrote: When Coollector generates a json file When ? Never Sorry, I'm not convinced |
Author: | kakashi [ Mon Nov 12, 2012 12:25 pm ] |
Post subject: | Re: HTML export |
Author: | (cool) Hector [ Mon Nov 12, 2012 12:27 pm ] |
Post subject: | Re: HTML export |
kakashi wrote: Don't even try, my heart is a rock. |
Author: | kakashi [ Mon Nov 12, 2012 4:23 pm ] |
Post subject: | Re: HTML export |
(cool) Hector wrote: it's possible to have a combo box to change the style at any moment. It 'll just change the XSLT that is used. Can be done with JSON too. It's actually pretty easy... Attachment: Plus there's all the 'little' things that are easily done with the values in a JavaScript array. e.g. changing title color to yellow if the movie is owned etc. Attachment:
|
Author: | (cool) Hector [ Mon Nov 12, 2012 5:01 pm ] |
Post subject: | Re: HTML export |
Ok, ok, ok. The future export feature will handle XML and json. |
Author: | kakashi [ Mon Nov 12, 2012 11:47 pm ] |
Post subject: | Re: HTML export |
the defense rests. |
Page 2 of 2 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |