Retrieving JSON objects from another page - Questions
I want to retrieve a JSON object from another page using either the ".getJSON()" method or the ".ajax()" method with a "dataType:json" parameter to retrieve the JSON object. When the request to retrieve the JSON object is executed how will it know where to find the JSON object? I've not seen an example that shows exactly how the JSON object needs to be stored or placed on the original page which will be generating it. Does it just look for the first or all JSON objects that it finds on the target page and return them all, based on their data type, or do I need to place the object(s) within a specific set of tags similar to when retrieving html? Please explain. Thanks.