Building query strings with javascript
I am wondering if it is possible to build a query string like:
fq=model:book+model:cds+model:journal+model:new_member+model:member
I want to use the below in the browser’s address bar:
//localhost:8080/search/q=son&fq=model:book+model:cds+model:journal+model:new_member+model:member
I don’t want to use the “=” (model=book) and “&” (model=book&model=cds) signs, but I need pair values (model:book) and the “+” sign (model:book+model:cds).
Thank you in advance,
Tom
Yes you can. JavaScript won't care. You can simply perform window.location.href = 'build your url here with the query string';
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks