THE ZEPINT NETWORKprogrammer assist |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Accessing an HTML element in a RJS template?DiggBlinkRedditDeliciousTechnoratiquestion by Bejaan | Moderate In a RJS template I need to access the innerHTML property of a element and pass it to a render call. Ideally, I want to be able to do something like this. Re: Accessing an HTML element in a RJS template?reply by Srirangan I'm not sure of a way to do this, although it is pretty straightforward to make javascript calls in RJS, so I wonder if you could restructure your code such that the logic uses a javascript function on the page, and uses RJS to call that function/pass parameters? Got a Ruby Question?Just Sign Up and ask the top Ruby experts! |
Ruby Experts
Leading Experts
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright © 2007 Programmer Assist. All rights reserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||