[Rails] Re: Finding HTML attributes with jQuery in Rails 3.1

2011-09-10 Thread Frederick Cheung
On Sep 10, 8:17 pm, 7stud -- wrote: > Frederick Cheung wrote in post #1021129: > > > On Sep 10, 12:18pm, dwormuth wrote: > >> "operations" )) %>").show() > >> $("#services").html("<%= escape_javascript(render(:partial => foo )) > >> %>").show() > > >> or > > >> $("#services").html("<%= escape_j

[Rails] Re: Finding HTML attributes with jQuery in Rails 3.1

2011-09-10 Thread 7stud --
Frederick Cheung wrote in post #1021129: > On Sep 10, 12:18pm, dwormuth wrote: >> "operations" )) %>").show() >> $("#services").html("<%= escape_javascript(render(:partial => foo )) >> %>").show() >> >> or >> >> $("#services").html("<%= escape_javascript(render(:partial => $ >> (this).data("sectio

[Rails] Re: Finding HTML attributes with jQuery in Rails 3.1

2011-09-10 Thread dwormuth
Thanks for the quick response. I could use a switch/case structure to handle the $("#services").html("<%= escape_javascript(render(:partial => "a" )) %>").show() call as there are only 6 partials I need. I have 6 links on the page that only vary by the "section" value. I still need some guidance

[Rails] Re: Finding HTML attributes with jQuery in Rails 3.1

2011-09-10 Thread Frederick Cheung
On Sep 10, 12:18 pm, dwormuth wrote: > I'm having trouble wrapping my head around the proper syntax to have > jQuery (in an .js file) grab an HTML attribute and use the value of > that attribute to load a partial. > > HTML fragment: > > > jQuery string (now setting a static partial, I need this