-
Posts
4,190 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by nickbro
-
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
Ok, that's not correct, try this please: this.Start = function() { this.FileName = $("#uploadfilesrandom").is(":checked") ? this.FormatFileName() : this.File.name; console.log(this.FileName); if (this.File.name.indexOf('.') == -1) { alert(hap.common.getLocal("myfiles/upload/folderwarning").replace(/\%/g, this.FileName)); uploads.pop(this); return false; } else if ("<%=AcceptedExtensions %>".toLowerCase().indexOf(this.FileName.substr(this.FileName.lastIndexOf('.')).toLowerCase()) == -1 && "<%=DropZoneAccepted %>" != "") { alert(this.File.name + " " + hap.common.getLocal("myfiles/upload/filetypewarning") + "\n\n <%=AcceptedExtensions %>"); uploads.pop(this); return false; } console.log(this.FileName); if(this.File.size > <%=maxRequestLength%>) { alert(this.File.name + " " + hap.common.getLocal("myfiles/upload/filesizewarning")); uploads.pop(this); return false; } console.log(this.FileName); $("#progresses").append(' ' + this.FileName + ''); $("#upload-" + this.FileName.replace(/[\\'\. \[\]\(\)\-]/g, "_") + " .progressbar").progressbar({ value: 0 }); console.log(this.FileName); console.log(hap.common.formatJSONUrl('~/api/MyFiles/Exists/' + this.Path.replace(/\\/gi, "/").replace(/\.\.\/Download\//gi, "") + '/' + this.FileName)); $.ajax({ type: 'GET', url: hap.common.formatJSONUrl('~/api/MyFiles/Exists/' + this.Path.replace(/\\/gi, "/").replace(/\.\.\/Download\//gi, "") + '/' + this.FileName), dataType: 'json', context: this, contentType: 'application/json', success: function (data) { if (data.Name == null || confirm(hap.common.getLocal("myfiles/upload/fileexists1") + " " + this.FileName + " " + hap.common.getLocal("myfiles/upload/fileexists2"))) this.ContinueUpload(this.FileName); else { $("#upload-" + this.FileName.replace(/[\\'\. \[\]\(\)\-]/g, "_")).remove(); if (uploads.length == 1) $("#uploadprogress").slideUp('slow'); uploads.pop(this); } }, error: hap.common.jsonError }); return true; }; -
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
Ok, that looks all ok. Undo what you just did Line 476: $("#upload-" + this.FileName.replace(/[\\'\. \[\]\(\)\-]/g, "_") + " .progressbar").progressbar({ value: 0 }); console.log(this.FileName); console.log(hap.common.formatJSONUrl('~/api/MyFiles/Exists/' + this.Path.replace(/\\/gi, "/").replace(/\.\.\/Download\//gi, "") + '/' + this.FileName)); $.ajax({ -
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
1. Replace your ~/scripts folder with that from the full zip release 2. Apply the 9.3 upgrade again to upgrade the scripts again (the tree script is out of date there), this will reset myfiles/default.aspx 3. Go to edit ~/myfiles/default.aspx in notepad 4. Line 458 5. Change lines 458 to: console.log(this.File.name); this.FileName = $("#uploadfilesrandom").is(":checked") ? this.FormatFileName() : this.File.name; console.log(this.FileName); return; -
Click "Start button" in the search box, enter "Turn windows features on or off" in the features window, Click: "Internet Information Services" Click: "World Wide Web Services" Click: "Application Development Features"
-
Yep, the one in the zip
-
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
Ok, that didn't work, can you do the same steps but on line 973 instead and try again, only need firebug -
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
@Paul-K can you try the steps from this post: http://www.edugeek.net/forums/home-access-plus/119261-2-problems-home-access-plus-v9-2-a.html#post1026005 -
Right, another try with this issue, 1st we will try the drag and drop, see if we can get the debug info. What you will need: 1. Open ~/myfiles/default.aspx with nodepad 2. Go to Line 650 3. Insert above that line: console.log((event.target.files || event.dataTransfer.files)[i]); 4. replace the lines below with: /*var file = new Upload((event.target.files || event.dataTransfer.files)[i], item.Data.Path); uploads.push(file); file.Start();*/ 5. Load Your Browser 6. Login to HAP+ 7. Go to My Files 8. Access the folder you want 9. Press F12 (IE/Firebug) or Firefox > Web Developer > Web Console > Untick CSS/Security 10. Try to drag and drop a file to upload 11. Note what the console does To undo: 1. Open ~/myfiles/default.aspx with nodepad 2. Go to Line 650 3. Remove it 4. Remove /* and */ from the 3 lines below
-
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
Did you try clearing your browser cache? Very odd issue as I code and test mainly against Firefox (not IE) -
You need to replace your web.config file, it's out of date
-
Which uploader are you using? Drag and Drop? Upload button and single uploader? Upload button and multiple uploaders?
-
Have a look at Install Application Request Routing : The Official Microsoft IIS Site
-
You can add a live tile to the home screen to do that, since it's internal it shouldn't work externally. IIS Routing if you do want another site to be visible
-
With the 2nd issue, can you try downgrading jquery to v1.8.3: http://code.jquery.com/jquery-1.8.3.min.js
-
HAP+9 - Style.css doesn't seem to be loading ? Setup Page wrong
nickbro replied to burgemaster's topic in Home Access Plus+
The ad selector can sometimes not load with certain AD setups, I've yet to fond out what that is though. You should be able to make most of it up yourself though. Which browser are you using? Where are you accessing it from? Are you using https? -
New feature for v9.3 due out soon - booking system - users will not be able to book a resource if the lesson end time has past, or if allowance="x" is set on the resource after x minutes before, or after, the lesson start. [ATTACH=CONFIG]19489[/ATTACH] So in the above pic, blue is not available to be booked for anyone, even admins, and red is not bookable (laptops only). The green line is where the system things it is (during the lesson). This was a debug shot, and had the time set back 12 hours
-
HAP booking system cuts off last period & Changing week names
nickbro replied to tj2419's topic in Home Access Plus+
Ok, the rooms are showing as being enabled in the HAPConfig, can you do some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html to find out if there's a JSON request going out for those resources please For the other can you confirm this code if (user.isBSAdmin) $("#val").html("This week is " + (data[1] == 1 ? "Gold Week" : "Lilac Week")); else { if (data[0] >= 0 ) { $("#val").html("You have " + data[0] + " bookings available to use this week. This Week is a Week " + (data[1] == 1 ? "Gold Week" : "Lilac Week")); } else { $("#val").html("This week is " + (data[1] == 1 ? "Gold Week" : "Lilac Week")); } availbookings = data; } -
Hmm, very odd, glad you sorted it. It may of been a cookie issue.
-
HAP booking system cuts off last period & Changing week names
nickbro replied to tj2419's topic in Home Access Plus+
Can you post your HAPConfig.xml file (the booking system section) please -
HAP booking system cuts off last period & Changing week names
nickbro replied to tj2419's topic in Home Access Plus+
Line 69: Change the 200 to something else style="min-width: <%=(200 * (config.BookingSystem.Lessons.Count + 1)) + 2 %>px"> -
Method not allowed on helpdesk & Booking system
nickbro replied to simonmerry's topic in Home Access Plus+
Updated the release on codeplex: Home Access Plus+ - Downloads -
Method not allowed on helpdesk & Booking system
nickbro replied to simonmerry's topic in Home Access Plus+
Correct base styles.css: #sidebaredit { background: #fff; width: 0; overflow: hidden; line-height: 30px; position: fixed; left: 0; top: 40px; bottom: 0; -moz-transition: width ease-in-out 0.2s; -o-transition: width ease-in-out 0.2s; -webkit-transition: inherit; transition: width ease-in-out 0.2s; } #sidebaredit.show { width: 30%; border-right: solid 3px #004577; } #sidebaredit h1 { background: #00508a; color: #fff; font-weight: 100; padding: 5px 10px; margin: 0 0 10px; } #sidebaredit label { display: inline-block; width: 25%; text-align: right; padding-right: 10px; } #sidebaredit #bfdisclaimer label { width: auto; } #sidebaredit input[@type=text] { width: 70%; } #sidebaredit .buttons { text-align: center; margin-top: 10px; } #sidebaredit button { font-size: 20px; } -
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
Ok, I've tested my install, which runs jQuery 1.10.2 and IE8 operates normally, creates folders no problem at all, in both Compat mode and normal mode. -
[HAP+ v9.2] Various AJAX glitches with MyFiles
nickbro replied to FishCustard's topic in Home Access Plus+
Very odd, might be an IIS8 thing, will have to investigate that -
Method not allowed on helpdesk & Booking system
nickbro replied to simonmerry's topic in Home Access Plus+
Line 201 of Basestyle.css #sidebaredit { background: #fff; width: 0; overflow: hidden; line-height: 30px; white-space: nowrap; position: fixed; left: 0; top: 40px; bottom: 0; -moz-transition: width ease-in-out 0.2s; -o-transition: width ease-in-out 0.2s; -webkit-transition: inherit; transition: width ease-in-out 0.2s; } Need the top: 40px as well The transitions are a IE10 addition
