In the hope it helps someone else:
It turns out there's an option for this very thing, it just wasn't in
the wiki-docs (I'm about to go and add it).
You just need to attach a 'callback' to the options hash, that returns
the querystring you want sent to the server, allowing anything else to
be attached to it. Slight gotcha, what you return is used instead of
the defaults, rather than instead of. A quick example- I wanted
selecting a person's name to be further restricted if a company had
already been chosen:
var options = {
callback: function(field,querystring) {
if($F('company_id')) {
typed+='&company_id='+$F('company_id');
}
return querystring;
}
};
Greg
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---