Fancybox is a really nice jQuery library for creating lightboxes. There are a few simple examples and some documentation on their site but there seems to be no demonstrated method for loading a fancybox dynamically with javascript. All of their examples require you to embed a link to the lightbox content somewhere in the page [...]
Posts Tagged ‘javascript’
3 Jun
Find RSS Feed Links With jQuery
This took me a little while to figure out so I thought I’d share. You can use a jQuery selector to find any RSS links on a page very easily. The following line will return a list of the RSS link elements. The following snippet will create an array of all the urls to the [...]
2 Jun
TicTacToe in jQuery
As a demo application for a project of mine I wrote TicTacToe in Javascript using the jQuery framework. I’ve added excessive comments to the code to provide an easy walk-through example on the jQuery/Javascript game. I’m in no way a JavaScript expert, there are a hundred different ways to program TicTacToe, and this code is [...]
27 Dec
Proportional Image Resize in JavaScript
Socialbrowse currently shows summaries of shared links that have an ATOM or RSS feed. The feeds come with images of all sizes and we have to change the height and width to fit within the alloted space. CSS has max-width and max-height parameters but they have issues in IE and they don’t keep original proportions [...]