Opened 13 years ago
Closed 13 years ago
#6435 closed bug (invalid)
jquery and json
Reported by: | rhbalingen | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi!
none of the scripts to get data from flickr, that did work fine with older version, do run with the newer versions. What's wrong?
for example this one:
<!DOCTYPE HTML> <html>
<head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script src="./jquery-1.js"></script> <style> img { height: 100px; float: left; } html, body { border:0; margin:0; padding:0; } </style> </head>
<body> <div id="images"></div> <script> <!-- var flickr = "flickr.js"; window.onload = (function() { try {
$.getJSON(flickr, function(data) {
$.each(data.items, function(i,item) {
$("<img/>").attr("src", item.media.m).appendTo("#images"); if ( i == 3 ) return false;
});
});
} catch(e) {} }); </script> </body>
</html>
Attachments (1)
Change History (2)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This would be best to ask on the forum; if there is a bug you can open a ticket with a more specific title.
http://forum.jquery.com