[Proto-Scripty] weird issue with .each and objects

2010-10-10 Thread Steven Albarracin
/* Basically I'm trying the pass an array of objects and pass them into the Test class, but it only seems to be passing in the last object in the array... */ // class to store the id, first, last name Test = Class.create({ options:{}, initialize:function(count,obj){

[Proto-Scripty] Re: weird issue with .each and objects

2010-10-10 Thread Steven Albarracin
/ com www / crowder software / com On Oct 10, 4:25 am, Steven Albarracin stevenalbarra...@gmail.com wrote: /* Basically I'm trying the pass an array of objects and pass them into the Test class, but it only seems to be passing in the last object in the array... */ // class to store

[Rails-spinoffs] link_to_remote with onmouseover event

2007-03-09 Thread Steven Albarracin
Anyone have a better method for having the onmouseover event (or any other mouse event) instead of onclick when using link_to_remote: This is what I did, but I'd i have to create one for every mouse event, can't figure out how to call a mouse event via an argument . anyone else run into

[Rails-spinoffs] Adjust (typo)

2007-03-09 Thread Steven Albarracin
should be :onmouseover not :mouseover def link_to_remote_mover(name, options = {}, html_options = {}) link_to_function_mover(name, remote_function(options), html_options) end def link_to_function_mover(name, *args, block) html_options =

[Rails-spinoffs] PeriodicalExecuter passing variables to the callback function

2005-12-12 Thread Steven Albarracin
I trying to pass a variable to the call back function of when utilizing the PeriodicalExecuter function ex. new PeriodicalExecuter(refresh, 10); works but new PeriodicalExecuter(refresh(id), 10); works once then errors after the 10 seconds, I get this.callback is not a function