search for: ch9rrzxmc0c

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

2005 Dec 08
2
Prototype.js Hash Methods
...tion on the Hash Object defined in the prototype library? To be precise the following methods - 1. keys 2. values 3. toQueryString 4. inspect 5. Merge I am trying to play around with them and have come up with the following examples - var h = $H({name: "john doe", email: "john-Ch9RrZxMC0c@public.gmane.org", msg: "say hello to me"}); var h_in = h.inspect(); alert(h_in); //returns #<Hash:{''name'': ''john doe'', ''email'': ''john-Ch9RrZxMC0c@public.gmane.org'', ''msg'': ''say hel...
2005 Dec 09
5
Prototype Enumerable, Array and Hash Documentation
Hey guys, I recently published an article documenting some of the more useful and interesting parts of Prototype''s Enumerable, Hash and Array objects. You can find it here: http://encytemedia.com/blog/articles/ 2005/12/07/prototype-meets-ruby-a-look-at-enumerable-array-and-hash If you have any feedback or suggestions, fire away. Cheers, -Justin Palmer
2005 Dec 02
0
Prototype Hash#map & #each
Hello, I wanted to apply escape on every property of an object using the Hash.map method in prototype library. Check out this code: <script type="text/javascript"> // Regular Array var a = ["john doe", "john-Ch9RrZxMC0c@public.gmane.org", "say hello to me"]; a.map(escape).each(function(x) { document.write(x + "<br />"); //nice and clean syntax }) // Hash (not so elegant) var h = $H({name: "john doe", email: "john-Ch9RrZxMC0c@public.gmane.org", msg: "say h...
2007 May 28
5
CTI in ActiveRecord
I search an plugin or gem, but don''t find nothing satisfactory. I believe to be stranger a technology that nails the DRY, have that create you vary equal tables, instead of using inheritance. Exists an soluction for this? I want a solution similar to this: create_table :people |t| do t.column :name t.column :address end create_table :customer |t| do t.column :person_id