similar to: Rails 3's rails.js should offer Ajax.Updater

Displaying 20 results from an estimated 6000 matches similar to: "Rails 3's rails.js should offer Ajax.Updater"

2006 Jul 26
3
Getting Ajax.Updater or page.replace_html to render js?
Hey guys, I, for the life of me, cannot figure out how to get Ajax.Updater or page.repalce_html to render the javascript in a partial. Upon page loading, the partial gets rendered fine. But when called up to render through an AJAX function something goes wrong. Are you guys getting this error??? -- Posted via http://www.ruby-forum.com/.
2005 Oct 19
1
js not executed after ajax.updater -- evalScript:true not a solution
Hi. I have a <div> on a page that I replace with a new one using Ajax.Updater. Inside this newly placed div, I am using classes and behavior.js to launch various Ajax things and scriptaculous effects. None of them, however, get triggered after the update. They also fire no javascript errors or anything of the kind. I''ve seen the option evalScripts with Ajax stuff-- but
2006 Feb 07
2
RE: ajax.Updater w/ JS content
Do you mean droppable.element.id? > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Louis Walch > Sent: Tuesday, February 07, 2006 11:38 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject:
2007 Jun 19
0
Insertion of JS directly into ajax.updater div
Hi folks. I''m trying to shove some Digg JS scripts into a div I''m calling through an ajax.updater function: <script type="text/javascript"> digg_url = ''http://domain.com/library.rbf?id=5''; digg_bgcolor = ''#c9cc67''; digg_skin = ''compact''; </script> <script
2012 Nov 29
2
[Rails 3.2] form_tag w :remote => true doesn't fire up the js format
I have a form_tag written like this : = form_tag search_backoffice_places_path, {:remote =>"true", :id => :searchplaceForm } do .. input fields = submit_tag t(:search) generated html is correct : <form accept-charset="UTF-8" action="/en/backoffice/places/search" data-remote="true" id="searchplaceForm" method="post"> ...
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2006 Mar 03
1
Dynamic JS updating / data-preloading using ajax
Hi all, I''m building an application which uses mostly ajax to update the sections of the page. Now I''ve come to some thoughts on how to make the ajax-handling more efficient / less buggy. Currently, when the page loads up, I start some "new Ajax.Updater"-stuff to fill some sections with content from the db. I also registered watchers which also start nearly the same
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
My scenario: On a department''s products page (index.js.rjs), there is a table showing the products with their id, name, category. The view of this table is specified by a partial file called _index.html.erb. I''m going to add in a selection/option drop down menu above the table to show all the product categories. When the user selects a category from the drop down menu, Ajax
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying. In javascript, I''m using the ajax.updater, and it (obviously) writes back out to a div. I want to then compare what was echoed out into this div (which came from the php file I listed in ajax.updater) with a string. test should equal "SomeString" because that is what is being echoed out to
2006 Mar 22
2
observe_form without ajax?
This betrays my lack of javascript knowledge, but is it possible to watch a whole form for changes and activate some javascript when those changes occur without any remote request? That is, I want to do exactly what observe_form does, but without the ajax call actually happening. I realize I could use the form_tag :onchange parameter, but that seems to be incapable of doing things like
2009 Jul 29
6
Doubt in nil object with ajax
hi this is my htnl <html> <head> <%= javascript_include_tag :defaults %> </head> <body> <%= form_tag nil, { :id => ''search_form'' } %> <%= text_field ''recipe'', ''name'' %> <%= end_form_tag %> <div id="recipe"> </div> <%= observe_form :search_form, :frequency =>
2006 Jun 28
2
Ajax - Upload File Upload
hello, i have a problem. I want to upload a file with ajax and the following tag: submit_to_remote ''button_save'',''Speichern'',{ :url => {:action => ''ajax_update'', :id => @product}, :update => ''formular'' } it doesn''t work, my form_tag looks like: form_remote_tag(:url => {:action =>
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 Mar 28
0
ajax question about refreshing divs
Ok, I have manny divs in the html, and I have a login form in a inner div, if the user tries to login and the user/password is invalid, only the inner div needs to be refreshed and show the user the error. If the user/password is ok, the main div needs to be refreshed. How could I do this? this is the view in example <div id="MainDiv"> foo <div
2005 Nov 03
0
sorting and filtering tables using ajax
I have a table in a view of my ruby on rails application which shows records from a database table. The first row of the table contains a table name and buttons to scroll left and right through the pages. The second row contains a form which lets me build up a filter string to use as the '':condition'' parameter of the paginate function in the controller. The third row contains
2010 Oct 18
0
Ajax call-request.xhr? = false Rails 3
I have the following tag in a view:- <%= form_tag url_for({:controller => params[:area], :action => :search, :area => params[:area] }), :method => :get, :remote => true do %> <%= label_tag(:query, "Search for:") %> <%= text_field_tag("query", params[:query], :autocomplete => "off", :onKeyPress=>"return
2011 Sep 25
0
ajax problem when switching from prototype to jquery
I have an old Rails application that I''d previously upgraded to Rails 3.1 with a lot of legacy features left on; now I want to switch to using jQuery instead of Prototype, and switch to using the asset pipeline. I''m trying to tackle the first of those; no idea if that''s wise, maybe I should start with the asset pipeline instead? To switch to jQuery, I added gem
2006 Feb 16
4
newbie question regarding basic AJAX form verification
Hi, I''m confused about how form verification with AJAX works. Let''s say I have a ''new.rhtml'' view that contains a form with two fields, and the form action is ''create''. Let''s assume that I also want to do some type of data validation on one of the two fields via AJAX before I submit the form. But since I''ve already
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
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