I ran your site in Firefox with Firebug and it found an error on the
following line. I suggest you do the same. It makes debugging much
easier.

new Ajax.Updater('content', 'page.php?p=' + pageNumber, OnComplete:
{ new Effect.SlideDown('content'); return false; });

I believe this should be formatted in this manner:

new Ajax.Updater('content', 'page.php?p=' + pageNumber,  { onComplete:
function() {new Effect.SlideDown('content'); return false;} });

For some reason SlideUp was giving me an error, so I simplified the
program, swapping the effects for simple hide/show functions. I made
"test.htm" that just contains "###", instead of a PHP call. Here's
what I cooked up and it works:

<script type="text/javascript">
  function ChangePage()
  {
         Element.hide('content')
  new Ajax.Updater('content', 'test.htm',  { onComplete: function()
{new Element.show('content');} });

  }
  </script>


Is the site Latvian?


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

Reply via email to