2009/5/22 kittu.py <[email protected]>

>
> add an extra options :with => "'offset='+this.value"
> that should solve the problem;
>
> if what you're doing this for pagination, why not use will_paginate ?
>
> On May 22, 7:07 am, DelT <[email protected]> wrote:
> > select_tag("skippage",
> >                         options_for_select
> > ((first_page..last_page).to_a),
> >                         :onchange => remote_function(:update =>
> > update,
> >                                                      :url =>
> > {:controller => 'user' ,
> >                                                                 :action
> > => :list ,
> >                                                                 :offset
> > => ????? },
> >
> >                                                                 :complete
> > => visual_effect(:highlight, "showdb" )))
> >
> > #:complete => "alert($('skippage').getValue())"))
> >
> > I want to send selected value to parms[:offset],but i dont know how to
> > get the value
> >
> > $('skippage').getValue()  Only can use in the :complete,and it alert
> > the selected value successfully
> >
> > Thanks
>
> >
>

THX,but I try to paginate with ajax

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to