Cloud Photo

Azure Data Architect | DBA

Appending URL Query String Variables to $.getJSON

For all it’s simplicity, sometimes jQuery offers up a bit of complexity that sneaks past me in the documentation.

The RIGHT way to pass url query strings:

$.getJSON(“jobs.cfm”, {id: 32}, function(d) { … });

The WRONG way to pass url query string:

$.getJSON(“jobs.cfm?id=32”, function(d) { … });

Leave a Reply