Do you know a fast and simple way to encode a Javascript Object into a string that I can pass via a GET Request?
string
GET
No jQuery, no
jQuery
jQuery has a function for this, jQuery.param(), if you're already using it you can use that: http://api.jquery.com/jquery.param/
jQuery.param()
example:
var params = { width:1680, height:1050 }; var str = jQuery.param( params );
str now contains width=1680&height=1050
str
width=1680&height=1050