I Still can't figure this out but I did notice that I named the third
function the same as the second.
I changed that. but it still doesn't work in Safari. maybe there's
something wrong with my onclick?
Any help is greatly appreciatted!
thanks,
jacob
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);
}
});
}});
}
<li id="s1"><a href="lyrics/out-come-the-wolves" onclick="a('j/lyrics/
wolves.html'); return false;">Out Come The Wolves<span></span></a>
</li>
On May 29, 2:13 pm, jg <[EMAIL PROTECTED]> wrote:
> Hey guys,
> I wrote this script and it's working great in Firefox (osx), but not
> at all in Safari.
> Did i miss type something here?
> thanks, jacob
> you can check it out at - jacobgolden.com/lyrics
>
> var t = 'content_main'
> function a(url)
> {
> new Effect.Fade(t,{ afterFinish:
> function ap() {
> new Ajax.Updater(t, url,
> { method: 'get' , onComplete:
> function ap(){
> new Effect.Appear(t);
>
> }
> });
> }});
> }
>
> <li id="s1"><a href="lyrics/out-come-the-wolves" onclick="a('j/lyrics/
> wolves.html'); return false;">Out Come The Wolves<span></span></a>
> </li>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---