Probably because some Pointy-haired Boss wanted a prettier button

The fact that the managed power pole (accessible via the web so that remote power cycles are possible) still had the old IP (Internet Protocol) address [1] wasn't a problem—I still had the setup from last week so I could get access. This time, I was able to get the correct credentials to log in to powercycle this server.

Problem.

The site isn't Lynx [2] friendly. Not in the least.

Frames based, which made it a nightmare to navigate. But I was able to poke around find the right page where the outlets were listed, select power cycle, page down to the bottom of the form to find—

—the XXXXXXX button is **JavaScript based!**

And what does it do?

Well, let's see …

>
```
function send_authentication(formnumber) {
document.forms[formnumber].submit()
}
```

WHAT THE XXXX? [3]

They use JavaScript to simulate the action of a well-defined element of HTML (HyperText Markup Language), namely the Submit Button! Which would work reguardless of browser!

“Oooh, but that button graphic looks so good!”

I'm really feeling the need for a sucker rod [4].

So, if all the JavaSript does is simply simulate <INPUT TYPE="submit"> then let's add it. I save the page, edit it to add a submit button, load it up, and hit submit, and lo (that word—I seem to be using a lot lately) the server is power cycled.

Would it kill them to make the web pages a little more Lynx friendly?

Sigh.

[1] /boston/2004/12/22.2

[2] http://lynx.browser.org/

[3] http://thedailywtf.com/

[4] /boston/2004/12/26.1

Gemini Mention this post

Contact the author