Sorry for the novice scripting.
Thanks Michael that did the trick.
Although in Safari once the new content
has Appeared it the quickly disappears.
I heard this an issue with opacity
and Safari not liking it Opacity set
all the way to 1.
I changed it to effect.grow and that works
fine although not as sexy as appear!
cheers,
jacob
On May 30, 3:03 pm, Michael Peters <[EMAIL PROTECTED]> wrote:
> jg wrote:
> > updated code -
>
> > var t = 'content_main'
> > function a(url)
> > {
> > new Effect.Fade(t,{ afterFinish:
> > function aj() {
> > new Ajax.Updater(t, url,
> > { method: 'get' , onComplete:
> > ap = function(){
> > new Effect.Appear(t);
> > }
> > });
> > }});
> > }
>
> For the love of something, please learn to indent your code. That's almost
> impossible to work with. No wonder you're having problems :)
>
> After I indented your code, I could see one possible reason it doesn't work.
> Your defining your anonymous functions with names. It's possible this works in
> FF because it evaluates to the functions that was created.
>
> var t = 'content_main'
> function a(url){
> new Effect.Fade(t,{
> afterFinish : function () {
> new Ajax.Updater(t, url, {
> method : 'get' ,
> onComplete : ap = function() {new Effect.Appear(t);}
> });
> }
> });
>
> }
>
> --
> Michael Peters
> Developer
> Plus Three, LP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---