On May 25, 8:49 pm, Rails Learner <[email protected]> wrote: > Hi Everybody, > > I am having a tough time in figuring out how to pass 'this' java script > keyword as a parameter to a java script function in page.call. > > For instance, in my RJS template I want to do this: > page.call "myFunctionName", this > For starters you can use page << to insert an arbitrary fragment of javascript (and if you find yourself fighting rjs to much you may want to just drop it altogether). You could also try page.call 'foo', page.literal('this')
Fred > Any help in much appreciated!!!!!!!! > > Thanks! > -Amit. > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

