JavaScript Projects
This is a list of things I plan to do with JavaScript in the "near" future. I don't have lots of time to do this sort of stuff, though, so don't get your hopes TOO high.
Current Projects:
- IEemul.js enhancements
I figured out something to do that should repair Netscape's Object hierarchy/references when you write to innerHTML, I just have to add it in. It should prevent the need to re-get your reference after writing innerHTML on the reference.
attach/detachEvent is an IE5.5-only feature, but with a couple of changes I could make that code also work on earlier versions of IE (for the most part... just not as well as on Netscape) so those functions are available to Netscape AND Older IE, so IEemul starts having some value to IE itself, also.
See the above Docs for other to-do's. Top on my list are: Event Bubbling, Collection object (for document.images and document.links, especially), and making link.offsetLeft/etc. work (versus the link.x in Netscape) without the link being in a layer.
- Make the JavaScript Search Engine work well (currently it times out on each page way too quickly), and in IE (I know the theory behind doing a "window.find()" equivalent in IE, but have to implement it still).
- Edit HTML enhancements
I found out IE can catch arrows onkeydown (but not onkeypress). Also needs to do cut, copy, and paste. Need to make cut & paste pop up a list when there are multiple matches, rather than just not working.
- Netscape Layer-based "Windows" ... Should be able to make it so it works almost as a real "window" replacement in Netscape. Need to test the following concept as a way to make it work with almost any page that gets loaded in a "window": set a variable "window" (and "self" etc) on the Layer object that contains the loaded document. The variable is actually a reference to the LayerWindow with all the window functions/properties implemented. Then, hopefully any reference to "window" in the document will refer to MY "window" variable because of scoping ("closer" references get used before top level ones)... but there is the possible obstacle of reserved words in JavaScript.
New Projects:
- Right-click menu
Actually emulate the different browsers' right-click menus (as much as possible, anyhow), with the ability to disable particular functions, rather than the usual implementation of just disabling right-click completely.
- arbitrary-image mix-up game.
- other games, just for the heck of it.