Topic: AJAX example using new REST web-services

I'm really struggling to get a basic javascript-only XMLHttpRequest working with the new REST services. Debugging using Firebug the best response that I've managed to get from the Gateway so far was an instruction to reload the page!

I'd really appreciate a basic javascript-only example please (no jquery or java) that shows how to login and then returns JSON from a service that requires login (as I need to see how to do the cookie stuff).

Is anyone able to provide this please? I'm sure many others would find this benefical too...

Thanks, Keith