Work
I Hate Internet Explorer With A Passion
No Computer No Posts
Job Update – Part 1
The Secret of Cancelling and Stopping Events using JavaScript
Introduction
Back when I was doing my internship we had a major problem we were trying to solve. The project involved creating a web based terminal emulator using AJAX. Well, it was a little bit more specific than that. It was basically duplicating a specific application in the browser window.
Problem
Sounds all well and good except that this application made heavy use of F Keys, e.g. (F10, F5, F1, etc). Needless to say this would not really be viable in a browser since F1 would call up help, F5 would refresh and F10 would send the cursor to the menu. We had already written a nice enough key handler that worked rather well, with the exception of these F Keys.
JavaScript Solution
After a lot of hacking around I found a way to stop the browser from calling up and propagating those events. My code was, for lack of a better word, nasty; but it did work. It involved a lot of IE/Mozilla workarounds. I recently came across some cleaner code, so here you go:
One Down Two To Go
Time Breakdown for Web Designers
Spell Out a Detailed Contract
In the world of web design you often come across people who don’t exactly know what they want. And that is usually a good thing for you because you can then charge them for the minimum and increase based on “added features”, which they should have seen up front, but they don’t always. This has the slight problem of having a contract with an indefinite time period.
A time period is usually scheduled for delivery of the product in the contract. This ensures the buyer that the product will be delivered in a reasonable time frame so that you don't keep extending the job for not real reason. One thing I've learnt, however, is that you need to also specify a time frame that the user has to review the work and ensure that everything is to his liking. You absolutely need this if you're not charging by the hour.This is the problem I ran into a couple weeks ago and I’m still trying to get out of. I did a website for this guy a couple months ago. We agreed on a fixed price because it was supposed to be an easy enough job: a nice static layout, not much PHP, a Gallery, etc. A prototype was done in about three days. He was amazed by the quality of the website and had nothing but praise. Everything is good right? Wrong. He now had to burden of supplying content for the website. To make a long story slightly less long, this took a couple of months, and he only supplied pictures for the gallery and content for one of the six pages (not the home page). Now you may be thinking what does that have to do with me if the guy’s website
is empty, he paid for a design and that’s what he got right? Well I would agree with you there, but the problem was he had not yet paid the balance on his bill.