All Questions

2706
votes
73answers
2799416 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?
1201
votes
12answers
382776 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
358185 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...
377
votes
31answers
715012 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...
402
votes
4answers
222004 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?
252
votes
12answers
286530 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?
101
votes
15answers
145595 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...
382
votes
34answers
238759 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...
678
votes
15answers
646068 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...
293
votes
20answers
207797 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