rjs
RJS Conditionals based on Element Style - Ruby on rails
I have some RJS in a rails app.I\'d like to be able to check the style of an html element before executing an action on that element.[详细]
2023-02-22 10:01 分类:问答Rails Error submitting partial via Javascript
I have the following code in my controller: File: app/controllers/photos_controller.rb def show_snapshot_comments[详细]
2023-02-21 12:15 分类:问答Jrails and jquery-rails together?
I hope you forgive me if I\'m a little confused about this. Jrails rewrites all the helper methods for rjs otherwise in prototype.[详细]
2023-02-15 14:48 分类:问答Ajax flash message in ruby on rails
I\'m trying to show a flash message and render it with Ajax, but the message does not seem to be appearing until after I refresh the page.[详细]
2023-02-14 13:17 分类:问答How to access view helpers from RJS helpers in Ruby on Rails?
I had some common bits of RJS that I was repeating in multiple RJS files开发者_运维技巧, and so wanted to put it into a helper.[详细]
2023-02-10 09:35 分类:问答reload partial after clic a checkbox
I find a way to submit information after clic on a checkbox. <% remote_form_for @object do |f|%>[详细]
2023-02-06 01:58 分类:问答rails 2 replace_html puts javascript into the page
In my controller I have: respond_to do |format| format.js end In my rjs: page.replace_html(\"source_credential_list\", :partial => \"source_credential_list\", :object => @all_source_credenti[详细]
2023-02-04 09:13 分类:问答Problem with displaying content when using RJS
I\'m quite sure this is a silly error but I\'m unable to spot it. Please help me out on this. I\'m using a select tag to select a topic, which triggers the filter_by_content method. I\'m using Rails[详细]
2023-02-04 02:47 分类:问答RJS: How to get the value and innerHTML of a DOM element
I want to assign the value and the innerHTML source of a DOM element to the local ruby variables. However, in my method seemly i can not make use of the RJS to complete th开发者_JS百科is function.[详细]
2023-02-03 19:13 分类:问答Reload page or div using RJS
I have a \'like\'-counter in a rails project. Whenever one clicks this \'like\'-link I want to add one to the like_counter in the database. The logic works well and the database is updated, but I cann[详细]
2023-02-01 19:16 分类:问答
加载中,请稍侯......