We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40735
    • 119 Posts
    Hi all!
    I'm building a site in Revo that will showcase some photography and I'm using the Flickr API with the http://phpflickr.com/ wrapper. I'm writing a snippet to get the images using this and output them with a chunk. I'm not sure what the best way to go about delivering the images is though. I've thought about delivering a JSON object from the snippet to some JavaScript in the chunk and loading them that way. I was also thinking about loading them in the PHP and returning them to the client by setting header("Content-Type: image/jpeg"); but I'm not sure how I would do that in my snippet. I want to be able to pre-load the images in the background and I was thinking I might be able to use the header() function to do that but I'm not sure that it would work the way I'm thinking or if I can even set the headers from a snippet without breaking things.

    I'd love to hear any suggestions! Below is a link to the site.
    Thanks!

    http://ravenflight.net/