parameters: $(catid).serialize(true);
maybe?
On Apr 30, 4:44 pm, Scott Phillips <[EMAIL PROTECTED]> wrote:
> I have the following going on in my page, and I can't for the life of
> me figure out where I went wrong.
>
> <script type="text/javascript">
> function changecat(catid)
> {
> var params = {
> method: 'get',
> parameters: Form.serialize(catid),
> asynchronous:true, // Default behavior. Not needed.
> evalScripts:true
>
> };
>
> new Ajax.Updater('div123','/ajax/changecategory.php', params);
> //alert(params);}
>
> </script>
>
> and then on my page I have:
>
> <div id="div123">
> Results Here
> </div>
>
> <form id="cat_555" name="cat_555">
> <select name="category" onchange= "changecat('cat_555');" >
> <option value="6xx">Entertainment</option>
> <option value="34x6">Entertainment : Celebrity</option>
> </select> </form>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---