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
-~----------~----~----~----~------~----~------~--~---