You do realize that you're calling your DIVs "content" and "Content", right?
On Jul 8, 3:04 pm, Althalos <[EMAIL PROTECTED]> wrote: > Okey thanks for your answers. I read about queues and stuff and it > made me a lot smarter and wiser. Still I am having problems though, it > might have to do with my implementation of OnComplete.. here's the > code, the 2006-link is just a reference, the function works when I do > that. > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"> > <link rel="stylesheet" type="text/css" href="style.css" /> > <title>Terrvik Trophy™</title> > <script src="javascripts/prototype.js" type="text/javascript"></ > script> > <script src="javascripts/scriptaculous.js" type="text/javascript"></ > script> > <script type="text/javascript"> > function ChangePage(pageNumber) > { > Effect.SlideUp('content'); > new Ajax.Updater('content', 'page.php?p=' + pageNumber, OnComplete: > { new Effect.SlideDown($('Content')); return false; }); > return false; > } > </script> > > nothing happen at all when I execute that function, changepage... > </head> > <body> > <div class="container"> > <img src="terrviklogga.jpg" style="float: right; width: 414px; > height: 542px"> > <h1>Terrvik Trophy™</h1> > <h3> > <a href="#" onclick="Effect.SlideUp('content'); return > false;">2006</a> > <a href="#" onclick="ChangePage(2007)">2007</a> > <a href="#" onclick="ChangePage(2008)">2008</a> > </h3> > <div id="content"> > <div> > content content > </div> > </div> > <div class="nyheter"> > <ul> > <li>link</li> > <li>link</li> > </ul> > </div> > </div> > </body> > </html> --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---