search for: captureimportant

Displaying 2 results from an estimated 2 matches for "captureimportant".

2007 Jan 19
7
Prototype.js: Is there an "in_array"-like function?
Hi i was wondering if there is a quick way to search for a item within an array. Here is my approach for this functionality. It''s an prototype for an Array method called "has": Array.prototype.has = function(needle) { for (var i=0;i<this.length;i++) { if(this[i] == needle){ return true; } } return false; } var someArray = [''jim'',
2006 Nov 22
9
Way to interpolate a variable sent to $()
Hello all, I''m new to prototype and javascript isn''t my strong point. I''m trying to get a simple test script to work, which is turning out to be a little harder than I thought. I have a bunch of fields that I need to be able to switch on and off using one of a few hashes. In the example below I''m trying to get one to work. The problem occurs when I try to