[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Effect.Fade and Back Button

ju dith

4/20/2008 11:08:00 PM

Hi,

i have a picture which dissapeares via Effect.Fade, but i'd like it to
be seen when you leave the site and come back.
but this doesn't work out when the back button is used, as the site is
not reloaded then and the div with the picture is still set on not
visible/opacity=0

is there any possibility or solution?

thanks,
judith
--
Posted via http://www.ruby-....

2 Answers

Mikel Lindsaar

4/21/2008 12:53:00 AM

0

On Mon, Apr 21, 2008 at 9:08 AM, ju dith <ju.dith@gmx.net> wrote:
> i have a picture which dissapeares via Effect.Fade, but i'd like it to
> be seen when you leave the site and come back.
> but this doesn't work out when the back button is used, as the site is
> not reloaded then and the div with the picture is still set on not
> visible/opacity=0
> is there any possibility or solution?

You want AJAX history.

Basically you set some javascript to fire when the person comes back
to the page.

Check out http://lindsaar.net/2008/2/22/history-buttons-with-ajax-and-rub...
for how to do it.

Mikel

Tim Hunter

4/21/2008 12:55:00 AM

0

ju dith wrote:
> Hi,
>
> i have a picture which dissapeares via Effect.Fade, but i'd like it to

Judith, this sure looks like a question about Ruby on Rails, but this is
the Ruby mailing list. You're going to have better luck getting an
answer on the Ruby on Rails mailing list. See
http://www.rubyonrails.com....

--
RMagick: http://rmagick.ruby...
RMagick 2: http://rmagick.ruby...rmagick2.html