I have an error message that is outputted as so:
<%= flash[:notice] %>
flash[:notice] is defined in my web_controller. I want a fading effect
on this text to draw more attention to it. Is there a simple way to do
this that I can’t seem to find on Google?
I appreciate your patience.
You’ll have to use a javascript library. By default, rails includes the
prototype.js library. Use the ajax helper methods to achieve the effect
you desire.
You could also use jQuery.
Cheers,
Punit
Pale H. wrote:
I have an error message that is outputted as so:
<%= flash[:notice] %>
flash[:notice] is defined in my web_controller. I want a fading effect
on this text to draw more attention to it. Is there a simple way to do
this that I can’t seem to find on Google?
I appreciate your patience.
Punit Rathore wrote:
You’ll have to use a javascript library. By default, rails includes the
prototype.js library. Use the ajax helper methods to achieve the effect
you desire.
You could also use jQuery.
Cheers,
Punit
Pale H. wrote:
I have an error message that is outputted as so:
<%= flash[:notice] %>
flash[:notice] is defined in my web_controller. I want a fading effect
on this text to draw more attention to it. Is there a simple way to do
this that I can’t seem to find on Google?
I appreciate your patience.
Yeah, I’ve had a look at prototype already. I just wanted another option
really. Thanks - I’ll look into jQuery.
Punit Rathore wrote:
You’ll have to use a javascript library. By default, rails includes the
prototype.js library. Use the ajax helper methods to achieve the effect
you desire.
Nope. This has nothing to do with Ajax – it’s just a JS visual effect.
You can do it with scrip.aculo.us/Prototype, or with jQuery, or with any
other JS library.
You could also use jQuery.
Cheers,
Punit
Pale H. wrote:
I have an error message that is outputted as so:
<%= flash[:notice] %>
flash[:notice] is defined in my web_controller. I want a fading effect
on this text to draw more attention to it. Is there a simple way to do
this that I can’t seem to find on Google?
I appreciate your patience.
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]