similar to: Inline RJS in controller

Displaying 20 results from an estimated 8000 matches similar to: "Inline RJS in controller"

2006 Mar 03
1
rjs isn''t update_page problems
i have a list of, for example, meal_names. Basically, I can submit a name and the name I add shows up in the list.I had this working wehn i created an actual add.rjs template for it. So feeling good about my self, I attempted to move it all to the controller and use some update_page goodness. Now it the ajax middle doesn''t happen. I don''t get any errors but the list
2006 Apr 07
5
RJS support "toggle" effect?
Does RJS inherently support the Element.toggle effect? I haven''t been able to call it the way you call "appear", "fade", etc... Jeff -- Posted via http://www.ruby-forum.com/.
2006 Feb 18
2
Effect queues with RJS templates and scriptaculous
Hi. I was wondering if it''s possible to combine effects for individual elements with RJS templates. I notice that scriptaculous has support for a concept called effect queues (http://www.railsdevelopment.com/2006/01/15/effectqueue/). Is there anyway to use these queues from rjs?
2006 Apr 11
12
RJS
I am trying to use RJS as shown in this tutorial : http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates However it does not seem to work. I am not getting any excpetions in the logs. Here is what the logs say : Parameters: {"action"=>"add", "controller"=>"homepage"} Rendering homepage/add The homepage/add is named add.rjs I know
2006 Mar 07
12
rjs and partials
I''m trying to update a list, and having a hard time applying visual effects to the latest element created. Here is what I''m doing. =========================================== 1) Creating an "item" via an action, then rendering the RJS template 2) RJS template looks like this: page.insert_html :top, ''items'', :partial =>
2006 Mar 14
2
rjs woes
i''ve just installed the RJS plugin per cody''s instructiuons and read through tutorials. I''ve made the necessary changes to my existing code and everything appears to be working, except that the returned javascript is not being evaluated... here''s my setup: i have a checkbox with an onclick event pointing to a javascript function. this javascript function does
2006 Jun 27
4
RJS Form Values
Hi, I have the following code : <%=link_to_function("? | China", update_page{|page| page[''tags_en''].value = "China" page[''tags_ch''].value = "?" }) %> This updates two text fields with the China and ?. However I want to append the values, not replace them. So I need something like this :
2006 Feb 14
2
Inline list editing with RJS: best practices
I wanted to get the community opinion on the best way to use partials and inline list (<li>) editing. I have a very common scenario where a list is rendered: --- index.rhtml --- <ul> <%= render :partial => ''item'', @collection => @items %> </ul> --- _item.rhtml (simplified) --- <li id="item_<%= item.id %>"> <div
2005 Dec 25
5
RJS not working?
I''ve been attempting to add a simple rjs ''delete'' method to my project. However, no matter what I try, it simply doesn''t work. Even the easy, easy stuff seems broken. (Yes, <%= javascript_include_tag :defaults %> is being included in the template.) For example, from: http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates VIEW: <h1
2006 Jun 13
21
RJS Templates for Rails
I''m happy to announce the availability of RJS Templates for Rails published by O''Reilly. The book covers all aspects and features of RJS that are included in Rails 1.1. It also walks through a few examples, debugging with FireBug, and finishes off with some reference material. The book is 56 pages and is available in PDF format. I''m really happy with how the book has
2006 Apr 08
2
Cannot use view helpers in RJS helpers
Any ideas why I would get an error in a RJS helper on view helpers such as number_to_currency. Example: # my_template.rjs page.help_me # my_helper for my_controller def help_me number_to_currency(10) end I have also tired page.number_to_currency but that doesn''t work either. Cheers, Nicholas
2006 Apr 27
7
RJS & Ajax question...
Hi, I''m trying to convert an older Rails application to use Ajax. I''ve already moved my edit and show actions so that, instead of displaying as separate pages, they appear in a <div> on my list view. However, I have two problems: 1) When the user saves the changes, I want to put all the ajax changes in an RJS template. However, form_remote_tag :url =>{:action =>
2005 Dec 23
13
how to form.rest in RJS
is there any way to Form.reset (clear all fields of the form ) in form_remote_tag generated form? I want to reset fields after ''submit'' in .rjs. -- Hiroshi Takagi <gollum-u1eKKkw+WM0gE89CWYshPg@public.gmane.org>
2006 Mar 29
2
vim syntax highlighting of rjs templates
Are there config files for vim that offer syntax highlighting of rjs templates? Charlie Bowman http://www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060329/486c9d84/attachment.html
2006 Mar 18
9
RJS - not working in IE
I searched thru all the postings about RJS, and I didn''t find one person who complained of problems specific to IE, but that''s what I''ve got. My environment is: Rails 1.0 + RJS Plugin Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support) Monkeypatched in_place_editor to support evalScripts I have just started using RJS, and I have two .rjs templates.
2006 Mar 23
3
RJS plugin and rails 1.1
Currently I''m using the RJS plugin for my app. After I upgrade to the soon-to-be-released 1.1 (which has RJS support built in), will anything break after removing the plugin? Has anyone messed with the release candidate and RJS yet? -- Posted via http://www.ruby-forum.com/.
2006 Mar 28
5
RJS call from controller issues javascript that doesn''t get evaluated by browser
Hi, I''m on Rails 1.1 and I have a problem wit RJS In my cotroller i have ==>>> def show @contact = Contact.find(params[:id]) render :update do |page| page[:contactInfo].replace_html :partial=>"contactInfo" end end <<<=== And my contactInfo partial looks like this and it''s placed inside a div element ==>>> <table>
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t, so this is my cry for help. Here''s my situation: I need to update multiple <DIV> elements on a page, each with its own HTML, but I just can''t figure out how to get it to work. That is, I want to replace everything within each <DIV> element with something new. When I try what
2006 Mar 04
29
Getting RJS / EgdeRails working
Hi, using Rails 1.0 on windows (without svn yet) I just wrote "rake freeze_edge". Are the RJS-templates already included then ? When I write "rake update_javascripts" I receive this error: svn: ''.'' is not a working copy Any tipps for a newbie on how to get the update done (if neccessary) ? thx Jan
2006 May 08
3
Can you apply effects to elements create in same RJS file?
I am trying to create a new element in a list and highlight it. I am doing the following in my rjs file: page.insert_html :after, ''bananalist_header'', :partial => ''banana'' page.visual_effect :highlight, "banana#{banana.id}", :duration => 1 The first line creates a new element with the id= ''banana3'' say... The second line then