Displaying 12 results from an estimated 12 matches for "visualeffect".
Did you mean:
visual_effect
2010 May 24
2
Two RJS visual effects will happen at the same time?
...dcolor => ''#ffffff''
But looks like they happen at the same time, instead of one after
another. Is there a way to make it happen one after another?
the Javascript sent to the browser is:
try {
$("vote_score").update("Score 63");
$("vote_score").visualEffect("highlight",
{"endcolor":"#ffcccc","startcolor":"#ffffff"});
$("vote_score").visualEffect("highlight",
{"endcolor":"#ffffff","startcolor":"#ffcccc"});
} catch (e) { alert(''RJS erro...
2006 Jun 13
2
passing options for render :update
...:update
in my controller:
render :update do |page|
page[''mybox''].visual_effect( :scale, 200, {:scaleContent => false})
end
this should just scale the box, and not the content, however, the
content scales.
I noticed that the following is produced:
$("folder-1").visualEffect("scale", 200, {"scaleContent": false});
I noticed that the scaleContent is in quotes - does that affect the
javascript? In html, I can get it to work by writing:
<a href="#" onclick = "new Effect.Scale(''folder-2'', 300, {scaleContent:
fals...
2006 Apr 18
4
update_page yields escaped code in callback
...lete:function(request){try {
$$("menu_tab").each(function(value, index) {
value.removeClassName("current");
});
$("contacts_tab").add_class_name = "current";
$("section").hide();
$("section").visualEffect("Appear", "{queue:
''end''}");
} catch (e) { alert(''RJS error:\n\n'' + e.toString());
alert(''$$(\"menu_tab\").each(function(value, index)
{\nvalue.removeClassName(\"current\");\n});\...
2006 Jul 03
0
Page 129 of Agile Web Dev on Rails (or pg141 of pdf!)
...:startcolor => "#88ff88",
:endcolor => "#114411"
The error is: RJS Error [object Error] (which is helpful!)
Followed by a pop up window containing the page code, the last line of
which is:
$("current_item").visualEffect("highlight", {"startcolor":"#88ff88",
"endcolor":"#114411"});
Code in cart.rb:
# add a product to the cart
def add_product(product)
current_item = @items.find {|item| item.product == product}
if current_item
current_item.increment_q...
2006 Jul 10
1
link_to_remote questions
Hello,
I tried link_to_remote to see the build in AJAX capabilities with rails for
the first time for me, I tried the following code and it worked:
<%= link_to_remote( "some link",
:update => "some_div",
:url =>{ :action => :someaction }) %>
OK, it has worked, but I have two questions here:
1- When moving
2008 Jul 25
0
doing Selenium tests and :confirm inside a link_to_remote does not work
...mages/trash_can.gif'', :border => 0),
:confirm => ''Delete Schema ''+schema.name+''?'',
:url=>{:controller=>:schema,:action=>:delete,:id=>schema.id},
:before=>"$(''shownDiv#{schema.id}'').visualEffect(''highlight'',
{duration:3});",
:complete=>"$(''shownDiv#{schema.id}'').shrink();$
(''inline#{schema.id}'').hide();"%>
Yes, I am using a bit of RJS, is that what cause this weird behavior?
And in the controller I have....
2006 Apr 06
0
script.aculo.us V1.6.1
...unittest.js; some cleaning up of unit tests
* Major speedup for sortable with handles initialization [thx Jamis
Buck]
* Add passing through of scroll options from Sortable to Draggable
[thx Gregory Hill]
* Make it possible to scroll window on dragging, #3921 [thx rdmiller]
</li>
* added visualEffect method for the Element Mixin, fixed so you can
chain multiple calls. [Rick Olson]
Bug fixes:
* Fix an IE flicker with SlideUp/SlideDown, fixes #3774, [thx sbbowers]
* Fix a problem with window scrolling on draggables [thx Gregory Hill]
* Fix a problem with id-based handle names and draggables
*...
2006 Mar 26
2
script.aculo.us 1.6 beta
...lous loader
* Refactor effects.js to use the new Prototype 1.5 Element Methods
syntax
* Update to latest Prototype 1.5.0_pre0 trunk
* Add passing through of scroll options from Sortable to Draggable
[thx Gregory Hill]
* Make it possible to scroll window on dragging, #3921 [thx rdmiller]
* added visualEffect method for the Element Mixin, fixed so you can
chain multiple calls. [Rick Olson]
* Fix only option on Sortable.create to accept multiple class names,
fixes #3427 [thx glenn nilsson]
* Added workaround for a rendering bug in Safari when using floating
elements with Effect.Appear
Please test!...
2006 Aug 18
7
Rewriting URLs - help needed
Hello -
I''m grappling with some tricky URL rewriting with Apache 2 and mod_rewrite,
and could use a hand.
Briefly:
URL for application is: www.servername.com/path/to/app/
There is no Alias directive; the application is in the directory
/www/content/path/to/app/ on the server file system.
The FastCGI dispatcher (dispatch.fcgi) lives at:
/www/fcgi-bin/path/to/app/dispatch.fcgi
Inside
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript?
RHTML is a great implementation in that it puts HTML first, and Ruby
second. I would have thought RJS would be the same way: a .js with ERb
helpers for generating Javascript functions.
RJS putting Javascript second means:
- I have to learn a whole new set of commands to use Scriptaculous.
- Developers have to constantly chase the
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...(!styles.opacity) styles.set('opacity', element.getOpacity());
+ if (!styles.opacity) styles.opacity = element.getOpacity();
return styles;
};
-};
+}
Effect.Methods = {
morph: function(element, style) {
@@ -1090,7 +1098,7 @@ Effect.Methods = {
return element;
},
visualEffect: function(element, effect, options) {
- element = $(element)
+ element = $(element);
var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
new Effect[klass](element, options);
return element;
@@ -1109,7 +1117,7 @@ $w('fade appear grow sh...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server