javascript - Callback function doesn't work when using getJSON -


This is the code I am using when I write a link in the browser (IE or Mozilla) (MyFunc ({"memes": [{"source": ".), But when I try to play it as an HTML file, I have an error in the status bar.What's the problem? Thanks < / P>

   gt; style & gt; IMG {height: 100px; float: left;} & lt; / style & gt; & lt; script src = "http : //code.jquery.com/jquery-latest.js "> <<   gt; body & gt; & lt; div id =" picture "& Gt; & l T; / div> gt; script & gt; $. GetJSON ("http://tagthe.net/api/? Url = http: //www.knallgrau.at/en&view = json & amp; Callback = MyFunc ", function (data) {warning (data);});    You do not define MyFunc anywhere in your code Do you want a ?  in the URL instead of an arbitrary name, and the jQuery CK name will replace it with a generated call. 


Comments