Jump to content

Recommended Posts

Posted

thanks for the info @minimoo - i didnt get to test it as i'd already started the exchange upgrade. I can confirm that you are on the right track though.. It certainly does work now the exchange server is upgraded.

 

I do still get one error however @nickbro

 

POST https://portal.school.lea.uk/beta/api/BookingSystem/Search?%222012-04-30T16:27:51.726Z%22

500 Internal Server Error

 

The "post" JSON Query looks correct.. it displays my username in quotes.

 

The response is:

Receivera:InternalServiceFaultMethod not found: 'Void HAP.Data.BookingSystem.Booking..ctor(System.Xml.XmlNode, Boolean)'.Method not found: 'Void HAP.Data.BookingSystem.Booking..ctor(System.Xml.XmlNode, Boolean)'. at HAP.Web.API.BookingSystem.Search(String Query)

at SyncInvokeSearch(Object , Object[] , Object[] )

at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)System.MissingMethodException

 

My hap.data.dll is not a new one.. should it be? i have v2.2.0.0..

 

Other than that, it's starting to look really snazzy! :)

Posted
I may of updated the data dll, so that could be the problem.

Attached is my HAP.Data.dll

 

It's Alive! :)

 

That hap.data.dll did the trick.

I'll spend tomorrow repopulating the groups (i reverted back to yours whilst troubleshooting), but it is looking really snazzy!

This is only installed on my offline system at the moment, but - wow, the removal of scrollbars makes it VERY tablet and iframe friendly! I'll have a more thorough test tomorrow and feedback any more issues!

 

AND the server up-time plugins work perfectly! :)

 

Thanks again - I do love being at the bleeding edge,

Matt

Posted
Word of warning on the server uptimes, if you find they're causing high load, you may want to edit the hap.web.js.js file and increase they're timeout. They will only work with AD joined PCs as it impersonates the Administrator Account
Posted
Word of warning on the server uptimes, if you find they're causing high load, you may want to edit the hap.web.js.js file and increase they're timeout. They will only work with AD joined PCs as it impersonates the Administrator Account

 

Changed it to 60000 which seems to equate to 60 seconds :) - The default was starting a new query before the first query had returned :D

(it's at the end of line 187 for any other noobs)

 

 

Fab.. Time for a cold beer for me in advance of the match!

 

(Before i go though, once i've populated my groups, i'm getting the contents of the "Me" group being displayed at the bottom of the first group. It all seems to work still, but just displaying in the wrong place.. I noticed it earlier, but it went away when i reverted to your example groups - I have a bit more in my groups and can dm them if required...)

 

Cheers again mate,

Matt

 

(P.S. Thanks to Paul too, nice first post - i salute you!)

Posted

Just testing it on my tablet, and it works, though the json calls need https to work properly.

 

Odd that your getting that, it shouldn't be happening

 

if you can post what links your using I'll have a look into it

Posted

Very odd, I just added a few groups and can't get it to duplicate it (had 10 groups running).

 

Any chance of getting access to that page to do some firebug debugging? If you know how to use firebug (I think chrome dev tools do it too) to inspect the CSS & HTML on that div to see what's causing it to do that.

Posted

Thanks - stepping back a bit to the exchange thing - i'm trying to decide from the second paragraph of msdn.microsoft.com/en-us/library/bb856547(v=exchg.140).aspx [forum wont allow links to be posted until I get a post count of 2 :p], whether we should really make sure it matches - to quote:

 

"Requests that do not include version headers are handled as requests from the initial release version of Exchange 2007. If the Exchange 2010 version is not specified, schema validation errors might occur because the request will be validated against the initial release version of the Exchange Web Services schema instead of the Exchange 2010 version of the schema."

 

Reading that, that would also imply it should be working already I think.... :)

Posted

Hey Nick,

Attached is a screenie of the "Me" panel after manually reducing its width. You can see on the left hand side, half of a button which has carried over from the top row of the "Management" panel which is what is causing the problem:

HAP-GUI Oddness.png

 

On an slightly unrelated note... On your nbdev website, you have a project to export timetables from SIMS.net to Exchange.. I've downloaded, edited and compiled the project, but the link to the SIMS report is missing - is that project likely to work? Does it require matching usersnames in SIMS and Exchange and do you have a copy of that report lying around?

 

(Your timetable link for students made me think it's something i'd like to make some progress on! :)

 

Cheers,

Matt

Posted

On the Live Tiles issue, hmm, how to fix that....

 

Undo the changes you made the default.aspx file and try these changes instead (default.aspx file):

 

Replace

$("#HomeButtons").css("width", ($("#HomeButtons > div").length * $("#HomeButtonsOutter").width()) + "px");

with

$("#HomeButtons").css("width", (($("#HomeButtons > div").length * $("#HomeButtonsOutter").width()) + 20) + "px");

 

increase the 20 as needed to get the me tab to fall back into alignment, let me know on the outcome and I'll add it to source control

 

 

 

you will need to import the report into sims for that to work, if I've forgotten to add that to that page let me know and I'll fish it out.

Posted

Well, good news and bad news..

 

Changing that to 200 makes it look perfect.. when full screen..

 

Now to move the goal-posts..

When the browser is not full-screen (as in the screen-shot below), the start position of each "panel" shifts to the right by about 20 pixels per panel.. That should be visibile in the animated gif below.. if it works!

 

Matt

Untitled.gif

(You might have to enlarge it to get it to animate.. not sure how you include such big thumbnails @nickbro

Posted

Ok, hmm, will need to add something else:

 

       <br />
            var scrollpos = 0;<br />
            $("#HomeButtons").css(("width", ($("#HomeButtons > div").length * $("#HomeButtonsOutter").width()) + 200) + "px");<br />
            if ($("#HomeButtons > div").length == 1) $("#rightscoll, #leftscroll").hide();<br />
            $("#HomeButtons .panel").css("width", $("#HomeButtonsOutter").width() + "px");<br />
            $("#leftscroll").click(function () {<br />
                if (scrollpos > 0) {<br />
                    scrollpos--;<br />
                    $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                    $("#HomeButtonsHeader h1").removeClass("active");<br />
                    $("#HomeButtonsHeader h1")[scrollpos].className = "active";<br />
                }<br />
                return false;<br />
            });<br />
            $("#rightscoll").click(function () {<br />
                if (scrollpos < ($("#HomeButtons > div").length - 1)) {<br />
                    scrollpos++;<br />
                    $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                    $("#HomeButtonsHeader h1").removeClass("active");<br />
                    $("#HomeButtonsHeader h1")[scrollpos].className = "active";<br />
                }<br />
                return false;<br />
            });<br />
[b]            $(window).resize(function() {<br />
                $("#HomeButtons").css(("width", ($("#HomeButtons > div").length * $("#HomeButtonsOutter").width()) + 200) + "px");<br />
                $("#HomeButtons .panel").css("width", $("#HomeButtonsOutter").width() + "px");<br />
                $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
            });[/b]<br />
            $(document).ready(function () {<br />
                $("#HomeButtonsHeader h1 a").click(function () {<br />
                    scrollpos = $(this).parent().index();<br />
                    $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                    $("#HomeButtonsHeader h1").removeClass("active");<br />
                    this.parentNode.className = "active";<br />
                    return false;<br />
                });<br />
                $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                $("#HomeButtonsHeader h1:first").addClass("active");<br />
                $('input[type=submit]').button();<br />
                $("#rightscoll, #leftscroll").css("height", $("#HomeButtonsOutter").height() + "px").css("line-height", $("#HomeButtonsOutter").height() + "px");<br />
            });<br />
        

Posted

hmm that seems to have broken the panels for me.. they all just appear on the first page under each other..

 

I'm just going to reset my installation from the "sourcecode" files however, as we have been playing in that default.aspx! :)

Posted

Try this:

 

       <br />
            var scrollpos = 0;<br />
            $("#HomeButtons").css("width", (($("#HomeButtons > div").length * $("#HomeButtonsOutter").width()) + 200) + "px");<br />
            if ($("#HomeButtons > div").length == 1) $("#rightscoll, #leftscroll").hide();<br />
            $("#HomeButtons .panel").css("width", $("#HomeButtonsOutter").width() + "px");<br />
            $("#leftscroll").click(function () {<br />
                if (scrollpos > 0) {<br />
                    scrollpos--;<br />
                    $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                    $("#HomeButtonsHeader h1").removeClass("active");<br />
                    $("#HomeButtonsHeader h1")[scrollpos].className = "active";<br />
                }<br />
                return false;<br />
            });<br />
            $("#rightscoll").click(function () {<br />
                if (scrollpos < ($("#HomeButtons > div").length - 1)) {<br />
                    scrollpos++;<br />
                    $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                    $("#HomeButtonsHeader h1").removeClass("active");<br />
                    $("#HomeButtonsHeader h1")[scrollpos].className = "active";<br />
                }<br />
                return false;<br />
            });<br />
            $(window).resize(function() {<br />
                $("#HomeButtons").css("width", (($("#HomeButtons > div").length * $("#HomeButtonsOutter").width()) + 200) + "px");<br />
                $("#HomeButtons .panel").css("width", $("#HomeButtonsOutter").width() + "px");<br />
                $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
            });<br />
            $(document).ready(function () {<br />
                $("#HomeButtonsHeader h1 a").click(function () {<br />
                    scrollpos = $(this).parent().index();<br />
                    $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                    $("#HomeButtonsHeader h1").removeClass("active");<br />
                    this.parentNode.className = "active";<br />
                    return false;<br />
                });<br />
                $("#HomeButtonsOutter").animate({ scrollLeft: (scrollpos * ($("#HomeButtonsOutter").width() - 20) + (scrollpos * 20)) });<br />
                $("#HomeButtonsHeader h1:first").addClass("active");<br />
                $('input[type=submit]').button();<br />
                $("#rightscoll, #leftscroll").css("height", $("#HomeButtonsOutter").height() + "px").css("line-height", $("#HomeButtonsOutter").height() + "px");<br />
            });<br />
        

Posted

Okay, reverting back to the source control versions and it works really nicely! :) It does some funny quirky resizing thing when i change the size of the window (in chrome), but ultimately it does work! lol

 

Very nice indeed - back to proper testing now! Is there anything else i should be looking at?

Posted
Ok, my version of HAP has a fixed width layout because of the school site, so that's why I didn't put the resize stuff in before
  • Thanks 1
  • 2 weeks later...
Posted

Here's a question, coloured tiles? YAY or NAY?? The Colour is auto picked depending on the colour of the icon image, which is cached in a XML file as well as in memory. The icons are resized and cached in the app_data folder.

 

[ATTACH=CONFIG]13955[/ATTACH][ATTACH=CONFIG]13956[/ATTACH]

 

Also, loading of thumbnails is slightly improved in this release

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...