Displaying 20 results from an estimated 7000 matches similar to: "RJS and Action Renders but page doesn''t update"
2006 Jul 31
4
RJS to find an element
I''m trying to implement a remove from cart method based on the  
examples in the second edition Agile book.  I have everything working  
except for the RJS that removes items from the cart.  Ideally what  
I''d like to do is highlight an element that I am deleting only if  
there is more than one of that particular item in the cart.  If the  
item deleted is the only of
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 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 Jul 22
5
Prototype error. replace content inside a <TR> in IE
Does anyone know of a fix for the issue with prototype and replacing 
table rows in IE? 
render :update do |page|
  page.replace "row_#{params[:id]}", :partial => 
''wireless_request/wrequest'', :locals => {:wrequest => @wrequest}
end
This ends up making IE throw an "rjs error [object error]"
Searching around I found a couple of posts about
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 Jun 23
2
Queue 3 or more RJS actions
My .rjs file
page.visual_effect :BlindUp, "people",  :queue => ''front''     #first action
page.replace_html  "people", :partial => ''person/person_compressed'', 
:collection => @search_results , :queue => ''end''   #second action, after 
first is done
page.visual_effect :BlindDown, "people" , :queue =>
2006 Jun 13
5
strange RJS behavior
I used RJS extensively in my last web app with no problem.
I''m just beginning a new one and having a very odd problem.
The called method, get_names, retrieves some values from the database, 
then ends:
   render :layout => false
the get_names.rjs file is rendered into Javascript, but then is just 
dumped as Javascript (text) into the browser:
e.g:
try {
2007 May 15
5
Problem with RJS and/or Prototype.js =>ResponseText is blank
Hi, I''ve got a real head-scratcher.  I''ve got a standard Ajax form using
form_remote_tag, which calls a controller action which adds a comment
and then sends back some JS via RJS which updates a few items on the
page.
It did work fine but (and I''ve no idea what has happened) now it
doesn''t.  It calls the controller action but gets an empty response back
and
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 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 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 =>
2006 Jun 26
8
[Semi OT] BlindDown and a floated div
I am using the drop shadow technique described at 
http://www.1976design.com/blog/archive/2003/11/14/shadows/ to give 
several of my divs  drop shadows.  That part works fine.
What doesn''t work so well is when I try to BlindDown a div in Firefox 
and it ends up ignoring the content below it and just overlapping it.  
In IE this problem does not occur.  In Firefox the overlapping does 
2006 Jun 22
1
remote content
Hi,
I''ve looked through the api and I can''t seem to find the functionality
that I''m looking for.  I want a link that, when clicked, will replace the
content of a div with the rendered content of another action.  Something
like what you can accomplish when you use remote_form_tag and then have
the reply replace the content of a div in the page.  I''m sure this
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/.
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 Jul 02
2
:include breaks has_many :order
It would appear that using :include on a model that has_many with an 
:order on another model makes it so that the order is ignored.  Is this 
supposed to happen? Strikes me as odd behavior.
For example
class Farmer < ActiveRecord::Base
  has_many :cows, :order => ''position''
end
class Cow < ActiveRecord::Base
  acts_as_list :scope => :farmer
end
If I do
2006 Jul 31
3
programmer needed (paying work)
hello,
I''m currently looking for a html/css/ajax/rails programmer. if your 
interested please email neumanc@gmail.com. I have paying work, will pay 
via check, money order, paypal or credit card.
I''m not sure if I can post this here or not. if not, please remove and 
email me a warning as I did not see any rules on signup. Thanks
-- 
Posted via http://www.ruby-forum.com/.
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 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 Mar 20
4
Ajax.Request w/standard redirect doesn''t render
I am doing an Ajax call in my page to a controller method like so:
new Ajax.Request(''<%= url_for(:action => "target_list_add" )%>'', { 
asynchronous:true });"
In my controller method "target_list_add", I do something and then I 
say:
redirect_to( :action => ''target_list_upload'', :layout => false )
I know for certain