similar to: weird prototype error when using RJS

Displaying 20 results from an estimated 3000 matches similar to: "weird prototype error when using RJS"

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
2008 Mar 25
6
Prototype 1.6.0.2 + Firefox 3 Enumerable problems
I am using Prototype 1.6.0.2 on Firefox 3.0b4. The following does not work when I enter it in Firebug: $A([1,2,3,4]).each(function(n) {alert(n);}); The above is just an example. Any array, using $A and any enumerable method, returns the following: TypeError: iterator.bind is not a function Seems like some objects are not being extended correctly? Using Prototype 1.5.0 on Firefox 3.0b4, this
2006 May 16
7
RJS head scratcher
I''ve been joyfully using RJS in a lot of our work lately, with no issues whatsoever. However, I am porting an application to RJS templates that we''ve had for a while, and having some issues. When I use Firebug to see what is going on, the response comes back like this: try { new Effect.Highlight("gi_error_row",{duration:20}); } catch (e) { alert(''RJS
2006 Jul 16
7
RJS and Action Renders but page doesn''t update
All, I am trying to perform a simple ajax task and am having some difficulties with the page showing the response. The action performs, but no response on the page. I have found examples on the web and I believe I have copied and pasted exactly what works from the demo site. However, on my system it isn''t finishing. For a simple test, I have limited it down to an alert.
2006 Aug 07
1
Unable to page.replace_html from rjs
I am having problems updating a div defined in a partial using both Element.update and page.replace_html in an rjs. I can put a link_to_remote in the partial using an :update, and the div updates fine. Does anyone have any idea why this might be happening? In the partial: <div><div> . . <div id="question_<%=question.id%>_error"></div> . (if a
2006 Jul 21
1
rjs template modifying form_remote_tag
I would like to build a form which uses ajax on the first request, but on a subsequent request uses the regular form_tag. The reason for doing this is that I need a file upload in the second request, and so I can''t use AJAX. I''ve tried using an rjs template to modify the form_remote_tag''s id (using page.replace ''form_tag_id'', ...), but the request
2011 Aug 18
9
RJS error rails 1.2.3 + firefox 4 and above
Hi, In my application I used in admin module to expand and collpase functionality using ajax(link_to_remote) method. It''s working fine in mozilla 3 and below version.. But when I using in mozilla 4 expand functinality was working fine but collapse are not work, it''s just ''wrinkls''. My code is like below <tr id="<%= content_element_id
2006 May 29
3
IFRAME based RJS - responds_to_parent
** File uploads with AJAX mojo ** Respond with RJS to your parent window with a form action targeted to a hidden IFRAME. Handles all the painful situations like scoping your JavaScript to your parent window generating the script block for execution and clearing the IFRAME after execution so the back button doesn''t re-execute the action. `plugin install
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 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
2008 Jan 23
11
Rails 2.0.2 + RJS
Hi I had ajax commenting on my app, which worked perfectly on Rails v1.2.6, but does not work the same in Rails 2.02. Basically the comment gets added, but the visual effects do not work (ie lines 2 + 3 of create.rjs) create.js page.insert_html :bottom, ''comments'', :partial => ''comment'' page.visual_effect :appear, "comment_#{@comment.id}"
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%>
2006 Jul 06
7
form_remote_tag submitting to an rjs file.
I have the following form that I am trying to use, but for some reason, the form gets submitted with out the params values. <%= form_remote_tag(:url => { :action => :add_item_to_order }) %> <tr> <td> <%=collection_select(:order_item , :item_category_id, @item_categories, :id, :name)%> </td> <td> <%= text_field
2006 Jun 27
2
Bug in Firebug or in RJS? Or something else?
I''m getting a really strange result using RJS page.replace_html and wonder if anybody knows anything that could help me figure it out. I''m rendering a partial in a loop in edit.rhtml that puts a set of <div>s on the page, each <div> containing a checkbox_tag with an associated observe_field and a text_field_tag also with an associated observe_field. When the
2009 Apr 03
7
RJS not rendering correctly when mime-type is 'iphone'
I have an iPhone version of my site, and for some reason none of the rjs works when viewing the iPhone version. This happens instead: ActionView::MissingTemplate (Missing template controller_name/ update.erb in view path app/views) The rjs works fine when viewing the site normally, and it worked when viewing the iPhone version prior to upgrading Rails to 2.3.2. Additional info: I have
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2006 Apr 22
1
RJS, scriptaculous, page.replace problem with input fields?
I''m hoping someone can help... I have an rjs template that invokes a couple of page.remove() calls that work fine, and a page.replace() call that does not. I''ve played with the javascript extensively from within Firefox''s FireBug module, and it seems to me that this is what is happening: What I''m trying to replace is an element that''s been
2008 Sep 29
4
RJS is not loaded
Hello, I have here an issue which is really critical for me (it for my university work and I would like to not delete this feature). It based on a Rails 1.x tutorial which I use now under Rails 2.x. It contains the refreshment (adding content or records) of an div via RJS/JS. I access the RJS via (Controller): respond_to do |format| format.html { redirect_to :controller =>
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 ..................
2009 May 20
2
prototype.js insert issue
Hi, I am trying to use the following lines in my RJS and have a problem page.insert_html :bottom,:list,"<ul>" #some conditions checks page.insert_html :bottom,:list,"<li>Hello item</li>" #some more code to add <li>s page.insert_html :bottom,:list,"</ul>" The problem I am having is the first line <<page.insert_html