Prototype
Make prototype.js’s toQueryString method php safe
One hurdle I came across today is Prototype’s Hash.toQueryString() method, which turns a hash into a query string [bet you couldn't have guessed that ;-)]. The wall I ran into was how it parses arrays within the hash, it would take something like this [in JSON]:
{"someArray": [1,2,3]}
… and run it through toQueryString(), it returns:
someArray=1&someArray=2&someArray=3
… [...]
Read Full Post | Make a Comment ( None so far )