Ever wanted to load a podcast (or several) onto your web site, but didn’t have the resources to make a proxy to get around cross-domain scripting issues? Worry no more! PodRadio.js is here.
I had a problem that I got to solve using something I rarely (if ever) use: jQuery.inArray(). While working on a new tool for doing Improv practice, I came across an interesting problem that might be worth sharing.
In my last installment, I covered loading external JSON files into your code. That works great, if you have reasonable control over the data format.
If you’re dealing with a vendor or open data source, you may not have the control you want to make a JSONP call (or the data is in XML instead of JSON). There’s a way around this by using a proxy.
I love using external JSON files for data configuration. Maybe it’s my old XML/XSL training, but there’s something solid about separating the content and presentation layers. That said, you need to set up your JSON in a clean and solid format to make it as future-proof as possible (we’ll cover that another day).
I recently ran a training session with my team on how to loop through arrays. The initial concept was how do you build a function that can parse out an array, with the array and the function separate items (meaning you can drop in a different array and use the function as-is).