Skip to content
Archive of posts tagged jQuery

The Simplest Ways To Do Image Rollover Effects: JavaScript And CSS-Only

A common question on Yahoo! Answers is how to do image rollover effects simply. There are two ways to do so: With JavaScript, and via CSS alone. Of the two, I prefer the JavaScript method, as it doesn’t require marking up your code too much; but the CSS method is fine, too, and takes away [...]

Sorting Your MySQL Results Set In PHP Using jQuery (And A More Traditional Approach)

Recently asked at Yahoo! Answers: Sort ORDER BY links for each COLUMN of MYSQL database in PHP page? These are the links I am currently using but they are just on the bottom of the page int he middle of no where… <p>Sort By:</p> <p><a href=”address.php”>address</a></p> <p><a href=”email.php”>email</a></p> <p><a href=”name.php”>name</a></p> <p><a href=”phone.php”>phone</a></p> <p><a href=”tvprogram.php”>tvprogram</a></p> Additional [...]

Ensuring JavaScript Is Enabled Before Displaying Content On A Web Page

I’ve previously noted that password-protection schemes that depend on JavaScript alone are entirely pointless. No matter how hard you try to obfuscate, mask or hide efforts to protect JavaScript code, anyone with a bit of knowledge and a bit of time on his hands can retrieve and view all your code, including all your username [...]

Using AJAX To Data Bind A Child Drop Down List Based On The Selected Option Of A Parent Select Control

Recently asked on Yahoo! Answers: How to generate a submenu on the basis of value in a menu without refreshing the page? I want to use if else construct to generate a submenu on the basis of value from a textfield in the same form. You can get it in the way that when someone [...]

Using jQuery To Show A Form Over A Reduced-Opacity Image

It’s an awful thing, waiting for a question at Yahoo! Answers that would be fun to discuss as a blog entry. There is an awful lot of chaff to be sorted before one finds such wheat, and even then, sometimes the supposed grains turn out to be mouse turds. Consider the following: How would this [...]