Displaying 20 results from an estimated 1000 matches similar to: "UJS for rails plugin Installation problems"
2006 Oct 04
0
UJS Plugin - apply_behaviour Question
Anyone using the Unobtrusive Javascript for Ruby On Rails Plugin?
I have some code that looks like this.
<% apply_behaviour ''select:click'' do |page, element, event|
page.insert_html :top, ''the_list'', "<li>hi</li>"
end %>
What I would like to do is list the element.value rather than the string
"hi" but I''m a
2007 Jul 08
0
UJS and make_observed
<p class="lastwinner">
<%= text_field_tag :user_search, params[ :user_search ] %>
</p>
<%= apply_behaviour "#user_search",
make_observed( :field,
:update => ''contresults'',
:with => "''user_search='' +
2011 Sep 06
8
Ajax and rails 3 UJS (jquery)
Hi, guys,
I''m in the midst of moving an app from rails 2.3.8 to rails 3.0.9.
Sadly, rails 3 no longer has javascript generators and I''m now forced
to do more javascript.
For my project, I have selected jQuery as the javascript framework for
my rails 3.0.9 app.
What I have done to have my app''s deletion link (for each item)
trigger an alert box when the deletion
2010 Aug 14
1
Rail3: UJS submit after client-side validation
I am have some problems with UJS. I have a (potentially) large form
that I was doing client side validation on (yes there is also some
server side validation) using an old prototype validation routine that
is not working with the current version.
I actually got validation to work by coping and modifying some of the
rail.js routine to observer submit. I also had some javascript toggles
that I got
2010 May 31
0
Rails 3 UJS and delete action
Hi,
I ve got a question concerning delete actions in the new rails 3 world
with unobtrusive javascript.
How may I perform an "ajax" delete in a list of products.
if attribute data-method is specified rails.js handleMethod is
called,
which adds csrf params into a hidden form and form.submit is called.
Works great, but form.submit is nt performed as an ajax request.
Using data-remote
2006 Dec 27
13
Where did UJS go? UJS vs. RJS
I have not been able to access the UJS site, http://www.ujs4rails.com/
for two days. Does that mean there are problems or that it has been
incorporated into Rails core?
In general, what do you think of using UJS instead of RJS?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Dec 08
2
UJS plugin incompatible with RSpec?
Hi all,
Anyone using UJS with RSpec? I have the following view spec:
---- edit_spec.rb
context "accounts/edit" do
fixtures :users
setup do
assigns[:user] = users(:consumer)
end
specify "should display the user info to edit" do
render ''/accounts/edit''
end
end
---- end
that causes this exception:
---- exception
ActionView::TemplateError
2011 Sep 19
1
Rails and UJS guide - not having much luck
I refered to http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/
in hope of getting json data from my controller and displaying it in
my view when an ajax request is made.
I followed the instructions on the http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/
and even corresponded with the author and also implemented his ''fix''
in
2007 Mar 13
0
Retrieve session_key
The unobtrusive javascript plugin stores its generate javascript files
in the session.
But it has some issues currently putting things into the wrong session
(because it doesn''t check to see what session key is being set in the
application controller). As such, it doesn''t work unless you
explicitly set the session key.
Currently I just added a line to my application controller
2010 May 12
1
Rails 3: perform controller action upon selecting menu item (UJS?)
In Rails 3, I have a form that has a menu on it. I would like to
render an area containing text fields within the form differently
depending on what''s selected in the menu.
Prior to Rails 3, one way it appears I could do this is by using
observe_field on the menu and call an action in my controller that
renders the appropriate partial which could then be swapped into a div
in my form.
2006 Oct 17
0
UJS Rails Plugin Group
UJS has started to get a lot of attention recently and we''ve found
we''ve been getting tickets filed on trac that are more like support
requests/help rather than real bugs.
For that reason, we''ve set up a UJS4Rails Google Group. Feel free to
ask questions, suggest features and discuss how you are using the
plugin.
http://groups.google.com/group/ujs4rails
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed
the steps for Rails UJS mentioned here:
https://github.com/rails/jquery-ujs
The last time I went ahead and added jQuery UI as well:
$ rails generate jquery:install --ui
remove public/javascripts/prototype.js
remove public/javascripts/effects.js
remove public/javascripts/dragdrop.js
2006 Nov 04
0
Prototype observe issues
I have tried a couple of different ways to do the following (using
unobtrusive javascript) as well as straight javascript. So far the
only way that I have been able to get it to work is through straight
javascript but still is not working the way that I would hope.
Basically I have the following in my application.js
var Myapp = {
myObserver: function(event) {
// links to adding a new
2010 Sep 21
0
Upload form with uploadify jquery plugin
I would like to integrate the uploadify plugin with a standard rails
form. However I can''t figure out how to add a new field and have it get
submitted with the file upload. I added a name field into the form, but
the valued does not get submitted.
<%
dialog_file_description = ''Photos''
allowed_extensions = [:jpg, :jpeg, :gif, :png]
max_size = 20.megabyte
2006 Mar 22
1
Lightning Fast Javascript Auto complete
<%= javascript_tag("new
AutoCompleter.Local(''search_start_station'',''start_station_auto_complete'',
stations);") %>
I have <%= javascript_include_tag :defaults %> in the head of my
layout.
But I always get an Error: "AutoCompleter is not defined".
Im using Rails 1.0, so I should have the latest javascript files.
The tag
2011 Aug 10
3
javascript_include_tag error
<!DOCTYPE html>
<html>
<head>
<title><%= @title %></title>
<%= csrf_meta_tag %>
<%= javascript_include_tag
"http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js",
"jquery.rails.js"
%>
<script type="text/javascript">
...app/views/layouts/application.html.erb:7: syntax error, unexpected
2005 Nov 25
0
question on rails , form_remote_tag and backbase
David,
I been reading your book and going through the examples but i am stuck
on th using the form_remote_tag.
I am using the Backbase ajax framework with rails and protoype.js
The following form.rhtml file
<% if @guess %>
<p> It seeems ''<%=h @guess %>'' is hardly the right answer</p>
<% end %>
<%= form_remote_tag(:update =>
2007 May 14
8
Problem with script.aculos.us script
I''m newbie to rails application.
I like to use script.aculos.us script in my app.
I faced the following problem.
1. first i creat my application.
2. Then I copied the files
scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and
slider.js
and prototype.js
into my app/public/javascripts/
3. Then included the <%= javascript_include_tag :defaults %> code into
head
2011 Oct 03
0
rails ujs, multiple ajax requests
Is there a way if you have multiple say products(example) to comment with
ajax on each one inline? I cannot seem to pass anything other than the
id. products have may comments
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
I am trying to rewrite my website in Rails 3 and Ruby 1.9.2.
Can some one help me convert my observe_field which is working under
Rails 2.3.5 to Rails 3. I would like to avoid using JQuery as over the
last year everything I have tried in JQuery has failed, including this
one. Perhaps due to my lack of knowledge. I would not like to install
the legacy upgrade.
What I have in my website is several