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

  • How not to sell games

    So apparently, the way to sell games these days is to supply maybe a dozen copies for the entire country and let everyone fight it out with eBay…

  • I've voted, and not for you!

    I've voted, and not for you! And you know what? I might even have not voted for the same party as you. I might have voted for the Tories while…

  • jFLAC rant

    So my latest bonkers programming project is a tool to detect if a collection of audio files are gapless or lot. Now, before anyone gives the obvious…

  • 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.