mobybrick Posted December 12, 2012 Posted December 12, 2012 Hi Nick, How's things? Thanks for the 8.5 release. It seems that on 8.5 the 'My Files' tile on the user's home screen the disk space information is missing. Disk space etc still shows up in My Files itself, but the little bar graphs are missing from the home page tile. Thanks Moby.
nickbro Posted December 12, 2012 Posted December 12, 2012 hmm, that's odd, can you do some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html
mobybrick Posted December 12, 2012 Author Posted December 12, 2012 The 'GET https://fqdn/HAP/API/MYFILES/drives?xxxxxxxxxxxxxxxxxxx' is no longer being called. It was prior to 8.5, but is no longer. Looks like everyone with 8.5 will likely have this issue ? Hope this helps, Moby
nickbro Posted December 12, 2012 Posted December 12, 2012 Thanks for the spot, I must of missed creating one of the new live tile handlers after ~/scripts/hap.web.js.js line 204 add hap.livetiles.RegisterTileHandler("myfiles", function (type, initdata, size) { this.id = (initdata.Group + initdata.Name).replace(/[\s'\/\\\&\.\,\*]*/gi, ""); this.html = '' + initdata.Name + ''; $("#" + initdata.Group).append(this.html); $.ajax({ url: hap.common.formatJSONUrl("~/api/myfiles/drives"), type: 'GET', context: this.id, dataType: "json", contentType: 'application/JSON', success: function (data) { var s = ""; for (var i = 0; i < (data.length > 3 ? 3 : data.length) ; i++) s += "" + data[i].Name + "" + (data[i].Space == -1 ? " " : ' ' + data[i].Space + '%'); $("#" + this + " span label").html(s); setInterval("$('#" + this + " > span > i').animate({ height: 'toggle' });", 6000); }, error: hap.common.jsonError }); });
mobybrick Posted December 12, 2012 Author Posted December 12, 2012 Yup, that fixed it! Any chance of updating the two zips so no-one else gets this prob? Thanks again... if only I could buy you a pint ;-) Moby
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now