All Questions

2706
votes
73answers
2884995 views

How can I get query string values in JavaScript?

Is there a plugin-less way of retrieving query string values via jQuery (or without)? If so, how? If not, is there a plugin which can do so?
1220
votes
12answers
388774 views

When are you supposed to use escape instead of encodeURI / encodeURIComponent?

When encoding a query string to be sent to a web server - when do you use escape() and when do you use encodeURI() or encodeURIComponent(): Use escape: escape("% +&="); OR use encodeURI() / e...
296
votes
19answers
358491 views

Get escaped URL parameter

I'm looking for a jQuery plugin that can get URL parameters, and support this search string without outputting the JavaScript error: "malformed URI sequence". If there isn't a jQuery plugin that suppo...
389
votes
32answers
749907 views

Get url parameter jquery Or How to Get Query String Values In js

I have seen lots of jQuery examples where parameter size and name are unknown. My url is only going to ever have 1 string: http://example.com?sent=yes I just want to detect: Does sent exist? Is i...
415
votes
3answers
228993 views

What is the maximum possible length of a query string?

Is it browser dependent? Also, do different web stacks have different limits on how much data they can get from the request?
255
votes
12answers
294934 views

Parse query string in JavaScript

Possible Duplicate: How can I get query string values? I need to parse the query string www.mysite.com/default.aspx?dest=aboutus.aspx. How do I get the dest variable in JavaScript?
103
votes
15answers
146646 views

JavaScript query string

Is there any JavaScript library that makes a dictionary out of the query string, ASP.NET style? Something which can be used like: var query = window.location.querystring["query"]? Is "query string...
718
votes
15answers
678992 views

How to get GET (query string) variables in Express.js on Node.js?

Can we get the variables in the query string in Node.js just like we get them in $_GET in PHP? I know that in Node.js we can get the URL in the request. Is there a method to get the query string para...
389
votes
34answers
244112 views

How to build a query string for a URL in C#?

A common task when calling web resources from a code is building a query string to including all the necessary parameters. While by all means no rocket science, there are some nifty details you need t...
300
votes
20answers
216065 views

Query-string encoding of a Javascript Object

Do you know a fast and simple way to encode a Javascript Object into a string that I can pass via a GET Request? No jQuery, no other frameworks - just plain Javascript :)

Previous Next