Tech Note: Ajax-Imbued Related Tag Popups

Technology • Views: 2,160

Those little tags you see at the bottom of each LGF article are now Ajax-infused. When you hover your little mousie over a tag, up pops a list of links to the last five LGF articles with that tag.

The code uses jQuery with the tooltip extension Levitip (with a custom source handler), to make an Ajax call that retrieves the last five articles. If this causes too much of a load on the server I may limit it to registered users, but this version works for everyone.

If you’re hovering over a tag on the front page, the popup shows the most recent 5 entries with that tag. But if you’re on the page for an individual article (with or without comments), the popup shows the entries earlier than the current one. This little twist is intended to let you surf the waves of related entries back through time.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
Once Praised, the Settlement to Help Sickened BP Oil Spill Workers Leaves Most With Nearly Nothing When a deadly explosion destroyed BP’s Deepwater Horizon drilling rig in the Gulf of Mexico, 134 million gallons of crude erupted into the sea over the next three months — and tens of thousands of ordinary people were hired ...
Cheechako
Yesterday
Views: 68 • Comments: 0 • Rating: 0
Texas County at Center of Border Fight Is Overwhelmed by Migrant Deaths EAGLE PASS, Tex. - The undertaker lighted a cigarette and held it between his latex-gloved fingers as he stood over the bloated body bag lying in the bed of his battered pickup truck. The woman had been fished out ...
Cheechako
4 days ago
Views: 167 • Comments: 0 • Rating: 1