Friday, November 28, 2008

[jQuery] Re: Changing query parameter

I'm not sure what you bean about changing depending on 'where I'm
using the plugin'.

you could use an if statement to set the parameter to change.
for instance

[code]
if(q=='foo'){
var term=q;
}
if(term==null){
term=q;
}
[/code]

something like that I think, but you haven't really spelled out what
you are trying to do .

On Nov 28, 12:33 am, Osymandias <nicholas.cla...@gmail.com> wrote:
> Hi all,
>
> Wondering how to change the actual query parameter sent by jquery at
> run time: e.g. instead of
>
> services?q=foo
>
> I might want to do
>
> services?term=foo,
>
> and this will change depending on where I'm using the plugin.

No comments: