1555
votes
47answers
544k views

How can I get query string values?

Is there a plugin-less way of retrieving query string values via jQuery (or without)? If so, how, and if not what plugin do you recommend?
26
votes
3answers
18k views

Serialize JSON to query string in JavaScript/jQuery

I'm trying to find information on how to serialize a JSON object to query string format, but all my searches are drowning in results on how to go the other way (string/form/whatever to JSON). I have ...
13
votes
6answers
74k views

jquery get querystring from URL [duplicate]

Possible Duplicate: How can I get query string values? I have the following URL: http://www.mysite.co.uk/?location=mylocation1 What I need is to get the value of location from the URL ...
28
votes
8answers
22k views

add or update query string parameter

With javascript how can I add a query string parameter to the url if not present or if it present, update the current value? I am using jquery for my client side development.
1
vote
5answers
13k views

How to retrieve query string parameter and values using javascript (Jquery)?

<a class="clickme" href="test.php?id=100&status=pending&time=2009" id="p_100">Click me</a> $('.clickme').click(function(event) { event.preventDefault(); var stringId = ...
2
votes
5answers
17k views

How can I convert query string or JSON object map to single JSON object with jQuery?

For this example, assume that I have a list of months in a form, each with a checkbox next to them. I'm looking for help on doing either of two things: Convert a query string (e.g. ...
7
votes
2answers
2k views

jQuery ajax, how to send JSON in stead of QueryString

Can someone explain in an easy way how to make jQuery send actual json in stead of a querystring? $.ajax({ url : url, dataType : 'json', // I was pretty sure this would do the trick ...
-2
votes
4answers
782 views

PHP Query String Manipulation

Any one have the ultimate PHP function(s) to add/remove parameters from a query string? It needs to handle all possible cases, Ive seen ones that handle some cases, but not all. Some example cases: ...
0
votes
1answer
677 views

pass inputbox value as a querystring to URL

I have an inputbox and a link for SEARCH styled to look like a Search button. When a user types in a keyword in the inputbox, I want to grab that keyword, pass it, and append it as a search query ...
7
votes
6answers
19k views

How to use jquery to manipulate the querystring

I have a select dropdown with id's mapped to values. On the onChange event I want to redirect to the same url but with 'id=value' appended to the querystring. How do I check that this 'id' option ...
4
votes
4answers
28k views

jQuery Get Query String Parameters

Anyone know of a good way to write a jQuery Extention to handle querystring parameters? Basically I want to extend the jQuery magic ($) function so I can do something like this. ...
3
votes
1answer
428 views

Any way to highlight current word & sentence in a contentEditable DIV?

I have a contentEditable DIV (building a kind of editor component). I am looking for a way to highlight the current word the user is typing and the sentence that word is on. For example, consider the ...
2
votes
2answers
3k views

Modifying a query string without reloading the page

I am creating a photo gallery, and would like to be able to change the query string and title when the photos are browsed. The behavior I am looking for is often seen with some implementations of ...
1
vote
2answers
4k views

Check whether a URL variable is set using JQuery

I would like to know whether there is a jQuery function which can check whether a variable in the URL is set. Something similar to the isset() function in PHP Thanks
0
votes
1answer
667 views

onselect checkbox add selected value to the URL as querystring

The page loads with the URL as http://mysite.aspx/result.aspx?k=("Hospital"). Now after the page load, if someone selects Offices checkbox, it should append the value of that Checkbox 'Office' to the ...

1 2
15 30 50 per page