similar to: render :update with different controller does nothing

Displaying 20 results from an estimated 20000 matches similar to: "render :update with different controller does nothing"

2006 Jul 24
0
Ajax page.replace_html model validation render partial errors
Hi; I have the following setup: A model: that validates using helpers like: validates_presence_of, etc.. A view: called ''new'' which renders a partial The partial: _form which has error_messages_for and a form_remote_tag , submit_tag and end_form_tag An action ''create'': that gets executed via the submit_tag in the _form and which in case it can''t
2006 Jul 21
0
Ajax page.replace_html model validation errors
I have the following setup: A model: that validates using helpers like: validates_presence_of, etc.. A view: called ''new'' which renders a partial The partial: _form which has error_messages_for and a form_remote_tag , submit_tag and end_form_tag An action ''create'': that gets executed via the submit_tag in the _form and which in case it can''t
2006 Jun 11
6
page.update_html not executed
Hi, when doing: render :update do |page| page.replace_html ''suggested_contractors'', :partial => ''contractors'' page.visual_effect :highlight, ''suggested_contractors'' end I got js as output, it is not executed, return html *contains*: try { Element.update("suggested_contractors", " \n 12345678910\n \n
2006 May 25
2
page.replace_html
This is odd. When I call: page.replace_html ''formdiv'', :partial => ''listing'' from an rjs file it renders stuff like: \n \n \n test \n \n test , NY 12344 \n \n Phone: (999)999-8888 \n\t\t\n\n \n \t\n \t\thttp:// \n \t\n \n \n \n"); } catch (e) { alert(''RJS error:\n\n'' + e.toString());
2011 Oct 07
0
will_paginate + RJS error
Hi there! I need some help, I''m new to rjs + will_paginate and don''t know how to solve this problem. The application apparently is working fine, the partial is rendered by the javascript, the pagination works fine, but sometimes, when I hit the next page number or " next >>", it reders the code below. Im using rails 2.3.8, ruby 1.8.7. and will_paginate 2.3.15
2008 Oct 18
5
render :update / page.replace_html problem
Hi there, I have this ajax problem, I''m desparately trying to debug since 1 entire day now: The Controller includes: ======================== [...] render :update do |page| page.replace_html ''coverletter_part'', :partial => ''user/applicationfiles/coverletter_part'' end [...] The View includes: ================== [...] <div
2008 Oct 29
0
RJS problem after upgrading to Rails 2.0.2
I just updated an old app from 1.2.6 to 2.0.2 and I''m having an rjs problem. I have one page that has 2 submit to remote buttons, one to do a price override and the other to remove the lineitem. Everything is working perfectly before the update but now the price override doesn''t update the page. I''ve verified that the price_override method still gets called because
2006 May 17
4
weird prototype error when using RJS
I''m trying to set up a nested menu strucutre using RJS I want to be click on an item, have not have the whole page refresh but just have the menu <li id=''Selection''> refreshed 1 - my model is using :acts_as_tree 2 - in my controller I have the following.. it''s just a barebones start at being able to dig DOWN through the chilren def renderMenu
2008 Dec 31
0
replace_html problem
Hi - trying to update a table with page.replace_html using a partial: The view (index.html.erb): [code=]<div id=''prod_table''> <%= render :partial => ''product'' %> </div>[/code] The partial (_product.html.erb) [code=]<table> <% for product in @products %> <tr> <td><%= product.name %></td>
2006 Jul 03
2
rjs renders string or partial but not template or action
Hi, I have an rjs file. I only have one controller called called front. I have views called "new_title.rhtml" and "_new_title.rhtml" These work page.replace_html ''title'', ''new title'' page.replace_html ''title'', :partial => ''new_title'' page.replace_html ''title'',
2006 Jul 03
6
Rjs $("aaa").insertHtml is not a function error
Hi, I''ve searched the list and found that someone had the same problem as me http://lists.rubyonrails.org/pipermail/rails/2006-May/043760.html I''m have in my page a link like this <%= link_to_remote ("Add #{image_tag(''add.png'')}",:url=>{:action=>''addProduct''})%> and in my controller def addProduct ..................
2006 Jun 04
3
Ajax table does not update
I have two models: Child and Day. A Child has many days, and a day belongs to a child. I want to create ana ajax table listing the children and, after pressing a button, I want to show the days that belong to that child. Here is my code: (list.rhtml) <table> <tr> ... <td><%= link_to ''Days'', :action => ''show_days'', :id =>
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item to fade and then get removed. So I do the following: 1. home_controller: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end 2. delete.rjs: if @element_id page.visual_effect :fade, @element_id
2006 Jun 27
5
RJS -- What am I missing?
This is driving me nuts:-) I''ve brought it down to a simplified case where I''m rendering this rjs template: page.insert_html :top, ''cat1'', "<li>Some list item</li>" According to FireBug, this is what I''m actually getting in the browser: try { new Insertion.Top("cat1", "<li>Some list
2006 Jun 19
10
Trying to delete from a unordered list using ajax
I have a controller method as such: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end (For the purpose of this exercise, category names are unique) I have the corresponding delete.rjs file: if @element_id page.remove :id => @element_id page.visual_effect :highlight,
2005 Dec 26
0
[rjs] How can I render a action template instead of partial
Hi, I want to render a action template with rjs, so instead of doing this: page.replace_html ''maincontent'', :partial => ''list'' I want to do this: page.replace_html ''maincontent'', :action => ''list'' but the render (that is called by replace_html, outputs to the reponds_body), so it doesn''t work. Is there a
2007 Apr 04
2
Simple RJS Calls Not Working
I have a simlple view: <h2>Tags</h2> <% unless @recipe.tags.empty? %> <table> <tbody id="tags"> <%= render :partial=>''tags/tag'', :collection=>@recipe.tags %> </tbody> </table> <% end %> <% form_remote_tag :url=>tags_path(@recipe) do%>
2007 Oct 25
0
How to spec a render:update call
Hi folks. I''m trying to work out how to verify that a controller has called a render:update block similar to: render :update do |page| page.replace_html ''edit'', :partial => ''form'', :locals => { :operation => ''edit'', :submit_button_value => ''Update'' } end We used to test this with something
2006 Mar 31
3
RJS templates outputting bloated code?
I''m an RJS newbie. I just did the tutorial at http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates, and then used wget to look at the output the RJS template generates. This is what I got: try { new Insertion.Bottom("list", "<li>Fox</li>"); new Effect.Highlight("list",{duration:1}); Element.update("header", "RJS
2006 Dec 05
5
Render :update and script tags
Hi All! I''m kind of new o ruby so please apologize my stupid questions on advanced... I''m using render :update do |page| page.replaca_html :element , :partial => ''apartial'' end This is working well, since I see in the page the following code: try { Element.update("element", ""); } catch (e) { alert(''RJS