search for: kendsnyd

Displaying 4 results from an estimated 4 matches for "kendsnyd".

Did you mean: kendsny
2007 Oct 19
2
string.prototype.isNumeric
Hey all, Just had a need for this, wondering if it is a candidate for inclusion as it is only a single line and I can''t seem to spot any other way of acheiving the same functionality in less code. String.prototype.isNumeric = function() { return (this.match(/^\d+$/) != null); } I used it in the context of: Event.observe(el,''keypress'',function (e) { if
2008 Jan 17
4
JSON query problems
I am constructing a JSON object that is an array of products. Using a select box, I want to find the object in the array that has an ID that matches the value from the selectedIndex of the select box and return the price. Here is the JSON script: var products = [{''ID'': 16378, ''Cost'': 100.00},{''ID'': 16377,''Cost'':
2007 May 11
15
Simulating onmouseleave and onmouseenter with Prototype
Hello. I spent an hour or three chasing down a desired effect that mootools implements, namely the simulation of onmouseleave and onmouseenter events. Why? Lets say you have a Menu. A ul element that contains many li elements. If you want to have a function (maybe an effect) fire when the mouse moves outside of the ul, you are out of luck. Observe the mouseout function like so:
2007 Jul 02
2
Object Property Sorting - Hash?
I''m trying to sort an object by its property names. As I understand it, iterating over an object using for...in or using Hash.each() (or Hash.sortBy()) does not guarantee the order of the properties. Is there an easy and low-overhead way to guarantee order? Or would I need to have some type of collection object that uses arrays instead of the property-value configuration that Hash