Frequently Asked Questions

Another JavaScript library? Really?
There is good and bad in every library, mainly brought about by the goals of their core developers. Jelo was built to meet the following needs:
How do I execute code as soon as the page is done loading?
Jelo.onReady(fn) adds a function to be executed once the page's DOM is ready. You can call Jelo.onReady more than once; each function will be executed in the order it was added.

	Jelo.onReady(function() {
		alert("the document is loaded");
	});
	
	var myFunction = function() {
		alert("both functions will execute on page load");
	};
	Jelo.onReady(myFunction);
							
How do I grab elements on the page?
Jelo uses the "dollar sign function", like most JavaScript libraries. $(selector) is shorthand for Jelo.Dom.selectNode, which returns the first matching element. $$(selector) (short for Jelo.Dom.select) works the same way, but returns an array of matching elements. The selector is any valid CSS selector, for example:
Who's the author?
I'm HB Stone, a Senior Applications Developer in Palm Desert, CA. My languages of choice are JavaScript and PHP, but I'm familiar with several other web and desktop programming languages. I mostly write custom software solutions for projects such as touchscreen vending machines, multifunction ATMs, educational and commercial kiosks. I also do my fair share of graphic design, web design, web development, and SEO.