Thomas (boggyb) wrote,

  • Music:

Apparently, writing a login page that works is Hard

This morning I'd just finished reading a book on the Kindle and since I hadn't yet turned my computer on, I decided to quickly check my email from the Kindle. Now, the webhost has a webmail service and the Kindle has a web browser so this should all work. Unfortunately, since I last used it the webhost has upgraded to the latest and shiniest version of cPanel, wherein the only visible difference is a shiny new login page. So, enter username, enter password, select login button... and absolutely nothing happens. The Kindle will happily highlight the button as something that can be clicked on, but whatever Javascript monstrosity is actually powering the login page prevents me from, well, logging in.

Later, for a laugh, I decided to try the Wii's browser (which is based on Opera). After persuading it to connect to the webmail address (hint: if you want to connect to a non-standard port, you have to enter the full URL including the "http://" bit) I then entered my username and password and selected the login button. At which point everything on the page disappeared except for the background image. I suppose this is a slight improvement on the Kindle. Actually if you then reload the page it seems to work, but I only tripped across that by accident when hitting the Wii browser's "change layout" button.

So I pulled up the source of the login page to try and work out just how they've managed to break such a simple thing. What seems to happen when you click the login button, some Javascript takes over and sends an AJAX request off. When the response comes back it'll display a message and if the login was successful redirect to the webmail interface a few moments later.

It's all shiny and AJAXy and Web 2.0 and completely pointless, not to mention broken in at least two web browsers. What was wrong with just using a server-side redirect (like the previous version did)? For that matter, what was wrong with using HTTP-based authentication (like the version before did)?

Oh, and in Internet Explorer 8 the background image on the login page doesn't show up. That's not due to a browser bug, but rather it's a deliberate decision in the CSS.
Tags: internets, rant

  • Alleluia! Christ is risen!

    He is risen indeed, Alleluia! This has been something of a strange Easter. It's the first year I've not gone back to Horsham (which was already…

  • Mini-update

    A random moment in the life of boggyb... At church music practice this afternoon (I turn up when I'm running the projection for a…

  • Lent photography, day 7

    News about him spread quickly over the whole region of Galilee. Mark 1:28

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.