Jump to content

trieu

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by trieu

  1. Hi!Sorry for the late reply! I have been busy trying to figure out the Flickr API! this is the code i have so far... <!DOCTYPE html><html><head><style type="text/css"> body { background-color: grey; font-family: arial; } #flickrFeed { width: 400px; background-color: white; border-radius: 10px; padding: 15px; }</style></head><body><div id="flickrFeed"></div><script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js"></script><script type="text/javascript"> var methodData = { method: "flickr.photos.search", api_key: "546f37e166db156dc56f56921adb5320", format: "json", nojsoncallback: "1"}; $.getJSON("http://api.flickr.com/services/rest/", $.extend(methodData, { text: "cuba", lat: "-41.292527", lon: "174.776151", radius: "32" }), function(data) { for (var i = 0; i < data.photos.photo.length; i++) { var photo = data.photos.photo[i]; //url format: http://www.flickr.com/services/api/misc.urls.html var photoUrl = "http://farm" + photo.farm + ".staticflickr.com/" + photo.server + "/" + photo.id + "_" + photo.secret + ".jpg"; $("<strong>" + photo.title + "</strong><br/><img src='" + photoUrl + "'/><br/><br/>").appendTo("#flickrFeed"); } });</script></body></html> So i am able to pull up the list of images, however im not sure if it returns any information about the location itself to let me plot the points?? I was reading on another forum where it said i could just add the "extras = geo" function to the search and it would return the values...but once i have this, what is the technique i go about to plot the information on the google maps?? Sorry for the questions! im a bit new to coding so im unaware of most techniquesThank you again, D
  2. Hey thanks for that! but i was wondering if you would be able to run me through on how to implement this into my code?? I've never really worked with API's before to be honest and i'm not too sure on where to begin! Thanks again
  3. Hey guys, I was wondering how i would plot the geo locations from flickr images, specifically in the "wellington, new zealand" region onto a google map?? I've seen some examples which sort of do it, but you have to enter your search parameters, such as... http://loc.alize.us/ I've managed to set up a google map that automatically sets itself to the "wellington" region but im not sure how to plot the points?? To take it even further, i was wondering if when you hover over the image would load say to the left of the page rather than tool tip, and hover over?? I've used this so far and managed to plot a specific point...https://developers.google.com/maps/documentation/javascript/overlays#Markers but now i need to somehow implement this..http://www.flickr.com/services/api/flickr.photos.getExif.htmlbut im not too sure how! Thanks in advance for any help you can give
  4. Hi guys!I've searched the net for a bit now and i tried to search the forum here but to no luck, anyway i was just wondering if you were able to help me out with an audio tag.I want to add an audio tag, which is easy enough but i want it to... automatically play and loop, but... i only want the buttons to be mute and unmute or play and unplay, i don't mind if there is two buttons but it would be cool if it was one i have found 1 or 2 examples where they turn it into text buttons (but the HTML doesn't work for it) but i was wondering if you were also able to edit it so it was an image? Thanks
×
×
  • Create New...