satishgaudo.com

Understanding technology

Posts Tagged 'jquery-oembed'

jquery-oembed:

A simple jQuery plugin that uses OEmbed API to help displaying embedded content (such as photos or videos) in your website. This plugin can be downloaded from google code base code.google.com http://satishgaudo.com/satblog/ext_img/oEmbed/index.html Quick explicit example: <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>jquery-oembed explicit insert example</title> <meta http-equiv=”content-type” content=”text/html; charset=utf-8″/> <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/ jquery/1.3.2/jquery.min.js”></script> <script type=”text/javascript” src=”jquery.oembed.js”></script> </head> <body> <script type=”text/javascript”> $(document).ready(function() { $(”#container”).oembed(”http://www.flickr.com/photos/ 14516334@N00/345009210/”); }); </script> <div id=”container”></div> </body> </html>

In this example the div#container will [...]

30 June 2010 at 16:12 - Comments