<h1>Brewing TV</h1>
<button type="button" href="http://blip.tv/brewing-tv/btv-71-hop-madness-2012-6439768" class="btn btn-darkest pull-left"><span class="glyphicon glyphicon-film"></span> Watch</button>
</br>
<h4><a href="http://blip.tv/brewing-tv/btv-71-hop-madness-2012-6439768" class="lnk" id='dynamic_url'>BTV 71 - Hop Madness 2012</a></h4>
<p>Hop Madness is setting in and Brewing TV is brewing two over-the-top hop bombs - a Double IPA and an October Ale (not to be confused with an Oktoberfest). Join us for some double hop-back insanity and a high-alpha barleywine/Burton Ale mash-up featuring the freshest Australian hops. Celebrate the hop! [Original postdate: November 16, 2012] More episodes and recipes at brewingtv.com</p> <small>16 November 2012, 3:26 pm</small>
<hr />
<button type="button" href="http://blip.tv/brewing-tv/btv-70-inside-hop-union-6401337" class="btn btn-darkest pull-left"><span class="glyphicon glyphicon-film"></span> Watch</button>
</br>
<h4><a href="http://blip.tv/brewing-tv/btv-70-inside-hop-union-6401337" class="lnk" id='dynamic_url'>BTV 70 - Inside Hop Union</a></h4>
<p>Brewing TV heads to Yakima, WA for a one-on-one tour and discussion with Hop Union president Don Bryant. We see how pellets are made and packaged and join Northern Brewer president Chris Farley during the hop selection process. [Original postdate: October 19, 2012]</p> <small>19 October 2012, 12:21 pm</small>
<hr />
<div class="video-container" id="json"></div>
JavaScript
var dynamic_url = "none";
$(document).ready(function () {
$('button').click(function (e) {
e.preventDefault();
e.stopPropagation();
dynamic_url = ($(this).attr("href"));
alert(dynamic_url);
favfunct();
});
});
function favfunct() {
// AJAX Call Below
$.ajax({
url: 'http://query.yahooapis.com/v1/public/yql',
data: {
q: "select * from json where url ='http://blip.tv/oembed?url=" + dynamic_url + "'",
format: "json"
},
dataType: "jsonp",
success: function (data) {
console.log(data.query.results.json.html);
},
error: function (result) {
alert("Sorry no data found.");
}
});
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.