According to the documentation located here: http://archive.plugins.jquery.com/project/query-object
In order to customize $.query
's parameters you need to: (quote)
There are now some customizations which can be done, mostly dealing with parsing and with toString generation. The options are set by creating jQuery.query as an object of settings before including the jQuery.query source code on your page as seen below:
So I am trying the example:
<script type="text/javascript">
var jQuery.query = { numbers: false, hash: true };
</script>
<script type="text/javascript" src="jquery.query.js"></script>
And this is what I get:
missing ; before statement
[Break On This Error]
var jQuery.query = { numbers: false, hash: true };
1 Answer 1
You cannot define a variable like that. Don't use var
to add properties to an already existing variable or object.
Use this
jQuery.query = { numbers: false, hash: true };
5 Comments
+
gets converted to %2B
in the url. When you read it on the server side it will be +
only.space: false
in the jQuery.query
object.bug
(i think) here: stackoverflow.com/questions/9180357/…