Displaying 20 results from an estimated 3000 matches similar to: "RJS to find an element"
2006 Jul 18
15
Agile Web Developement with Rails
I recently got a copy of the second addition in PDF
and got stuck on the Ajax portion using highlighting
page 128. While trying to make my cart flash I got an
RJS error when I click add to cart. I have gone back
and made sure my code matched what was in the book but
no help. I sent Dave an email and he rec''d this list.
Anybody got any good links for troubleshooting Ajax or
maybe have see
2008 Sep 03
2
Highlighint rjs problem on a new product
Hi,
Problem Summary:
I have been trying to add the highlight effect to my table but
everytime a new record is added the highlighting gives an rjs error.
However when i click the add to cart button on a product that already
exists inside the table, the highlight effect works. Is this because
the partial must only have only one <tr></tr> in it and the <table>
must be on the other
2006 Jan 10
5
using dynamic element ids with visual_effect
Mike and I demo an Ajaxified version of the Depot application in the
Rails Studio. Part of the demo is a cart in the sidebar which updates
when you add a product to it. As well as updating the div, it also
highlights the most recently added link item. Right now, we do it with:
<script language="JavaScript">
function flash_cart(request) {
var id =
2010 May 24
2
Two RJS visual effects will happen at the same time?
I was going to change the background of a div from white to red and then
from red back to white, so this is used in an RJS file:
page[:vote_score].visual_effect :highlight, :startcolor => ''#ffffff'',
:endcolor => ''#ffcccc''
page[:vote_score].visual_effect :highlight, :startcolor => ''#ffcccc'',
:endcolor =>
2006 May 09
4
changing the color of :highlight
Is there an easy way to change to color of the :highlight effect?
:complete => visual_effect(:highlight, "targetid", :duration => 1)
thanks
--
Posted via http://www.ruby-forum.com/.
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}"
2006 Jul 03
0
Page 129 of Agile Web Dev on Rails (or pg141 of pdf!)
Hi - another question, sorry....
I''m trying to get the highlighting effect to work on the current_item.
The page refreshes fine, and then I get an error as the highlighting
code is fired:
page[:current_item].visual_effect :highlight,
:startcolor => "#88ff88",
:endcolor => "#114411"
The error
2006 May 16
7
svn-1.3.1 errors on intel mac on checkout
I just installed svn-1.3.1 from .dmg on an intel mac. I am getting ...
subversion/libsvn_wc/log.c:338: (apr_err=155009)
svn: In directory ''sr''
subversion/libsvn_subr/io.c:565: (apr_err=2)
svn: Can''t copy ''sr/.svn/tmp/text-base/README.svn-base'' to
''sr/README.tmp'': No such file or directory
Any one getting this? TIA for any help.
2006 Apr 28
1
startcolor and endcolor not working
In my RJS template this works:
page.visual_effect :highlight, "test#{@test.id}", {:duration => 5}
but not this:
page.visual_effect :highlight, "test#{@test.id}", {:duration => 5,
:startcolor => "#FFFFFF"}
Am I misunderstanding how to pass in additional parameters?
_______________________________________________
Rails-spinoffs mailing list
2006 Jul 26
1
how do I change color to an highlight effect ?
This is my code:
<%= form_remote_tag :url => { :action => "forgot_account" }, :update
=> "result",
:complete => visual_effect(:highlight, "result", :duration =>
2, :startcolor => "#c8e673", :endcolor => "#9db55d") %>
If I remove colors to the effect everything works, but with this code
it renders on another
2006 Oct 09
2
page.visual_effect :highlight
I have some code that will do the highlight, fade effect on a block of
text. It seems to work just fine until it is fired multiple times very
rapidly.
The end color matches a grey background and the start color is a yellow.
Say its run 4 times a second for 3-5 seconds. When the flashing catches
up the text will fade for the last time to the end color, then the
background will switch to a
2006 May 16
3
UserEngine and hiding controllers
I''m using LoginEngine + UserEngine for web application.
1. I have some controllers under and admin subdirectory
(Admin::PostController etc). The auto-fill permission in UserEngine
does not work correctly with those controllers.
Right at the moment this is not a problem, since I kind like having the
Admin section separated and available only for god users. However, I
could use
2006 May 14
6
Controller Inheritance
Is there any known problem in inheriting a Controller from another
controller (that is to say having an Admin::PostController <
PostController, with PostController < ApplicationController)?
It is something I haven''t seen done in tutorials or books, however in my
opinion (and as far as I can see from my tests) it should work.
2006 May 19
2
looking for doc
Hello evrybody,
I''m new on this mailing-list. I begin with ruby on rails and Ajax, so
i''m looking for good documentation. It would be great if you can send
me some...
Sorry for my english.
Bye.
Mathieu
2006 Jun 08
19
Agile Web Dev (book) question: errors
This is kind of frustrating (but no doubt helpful in the long run) that
after following along and coding , and d/l the code the same error is
appearing.
For those who are familiar with the depot app, I''ve run into a problem after
fixing the cart to reflect quanitites. I worked through the intended error
messages but now have this appearing:
SyntaxError in StoreController#add_to_cart
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
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 Apr 07
1
changing visual_effect defaults
what is the correct syntax for changing an effect like :highlight? i
tried looking through the api, and found it, but i can''t seem to get it
right.
i want to change the start color of visual_effect(:highlight,
''user-list''). i tried visual_effect(:highlight, ''user-list'', :startcolor
= ''#990000'') and several other variations of
2006 Jul 16
17
AWDWR question
In an early section on Action View, showing code being put directly
into the rhtml file:
<% require ''date''
DAY_NAMES = %w{ Sunday Monday Tuesday Wednesday Thursday Friday Saturday }
today = Date.today %>
<h1>Hello, Dave</h1>
<p>
It''s <%= DAY_NAMES[today.wday] %>.
Tomorrow is <%= DAY_NAMES[(today + 1).wday %>.
</p>
I get this
2006 May 23
7
has_and_belongs_to_many question
Hello,
I am trying to make the "switchover" to programming my apps in Rails and
have a question about database structure.
In the past i would structure a many to many like this:
categories
----------------------------------------------------
| id | name |
----------------------------------------------------
1 Some Category
2 Another