Matt, you need a "new" keyword:

new Ajax.Request('browse.php', {
                         method:'get', ...

Cheers,
Andrew


On Mar 23, 7:26 pm, applmak <[EMAIL PROTECTED]> wrote:
> this.initialize is undefined - prototype.js: Line 48
>
> This error occurs with the following JS:
>
> <script src="prototype.js"></script>
> <script>
>         function loadBrowseMode()
>         {
>                 $('browser').update("Loading...<br/>");
>                 Ajax.Request('browse.php', {
>                         method:'get',
>                         parameters: {
>                                 list: 'author'
>                         }
>                 });
>         }
> </script>
>
> This is strange behavior. Can anyone tell me why it's happening?
>
> Matt
--~--~---------~--~----~------------~-------~--~----~
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