Hello
In this post I will elaborate and add more functionality to a previous post of mine found here here. Basically i have added more functionality to the page, such as left / right key navigation, number key functionality, enter/escape key functionality, and of course the entire suite of conditions needed so the code works properly.
I have tried to build each functionality as a module, which you can add and remove, however in order to have the search function work well with the tab functionality and switching, then some interdependence was needed.
The XHTML is not different from the last version, the only thing different is a few bits and pieces of additions, and more importantly a couple of new lists so we can have a tab functionality. Other than that, there were no major changes.
As with the first version this CSS is very basic however you can style it as you wish, probably in the future i may add some nicer styles to the project but for now, since it’s just a tutorial thingy, i think what we have is quite enough.
The JS suffered major changes, (of course right, we’re building a JS application here). It is kinda hard to explain everything in the post, but all the lines (almost all the lines) are heavily commented within the JS file itself, so please refer to that file for exact instructions and explanations.
The files can also be found online Here and a zip file can be downloaded from here
In part 3 of the series i will try to enlarge the search possiblity to include more than 1 letter
Hello
Did it happen that when you use an animation such as fadeIn()/fadeOut() on a LCD screen, that has windows cleratype on (this happens automatically in windows vista+ but can be set on and off in windows XP), on IE (all versions), the text is not antialised anymore. This is due to the filter attribute IE browsers use to make the cleartype/stuff.
The solution is relatively simple, like putting a function callback on the fade in()/fadeOut() such as:
It’s not a perfect solution, and it may be a bit laggy and you can still SEE THE TEXT BEING CLEARTYPED, but at least it wont stay without cleartype and look like shit. Also this is the only way to do it until jQuery incorporates it’s own fix to counter IE‘s behavior.
Hello this post is the one of the things i have stumbled upon today
I was working on a project and i was requested to do something ala Gmail shortcuts, aka you press a specific button and something happens, well, first off i looked on the web to see if there is any information, which of course it’s not at least from what i looked so i had to build it myself
First off we’ll start with a basic XHTML, containing an un-ordered list, styled a bit, the real secret is the JS itself, you can style the xhtml/css as you want, it doesnt really matter. To save space i’ll upload the complete final files at the end of this post, with instructions and comented css/xhtml/jquery
Hello
Did you knew that Google Chrome does not understand keypress() on special keys like arrow keys/esc/enter/etc ?
Me neither
I was trying to get the following code to work and it didnt work in Google Chrome at all
Tags: Chrome Bug, clean solution, jQuery
Categories: jQuery
Posted By: Dinulescu Alexandru Adrian
Last Edit: 08 Jan 2010 @ 08:43 PM
Hello
This is a post about the 3 properties in javascript, keypress, keyup and keydown. There are some small differences in the means to extract the data of the pressed key.
First off to explain the 3 properties:
Posted By: Dinulescu Alexandru Adrian
Last Edit: 08 Jan 2010 @ 08:39 PM
Recent Comments