Skip to content
Archive of posts tagged jQuery

Dynamically Adding JavaScript To Your ASP.NET Master Page From A Child Page

A common challenge when working with ASP.NET master pages is how to dynamically add JavaScript that is relevant to a specific child page.
In other words, maybe your site has 10 child pages that share one master page / template. One of them is, let’s say, a contact us / directions page, and on that page, [...]

Automatically Wiring Up XHTML Element Events On Page Load With jQuery

Many Web developers find themselves in an environment where the design of a Web page is handled by a graphic designer or junior programmer, either as part of their team or from a subcontractor or the client himself.
Unfortunately, traditional HTML / XHTML requires most element events handlers — onmouseover, onclick, onfocus, etc. — to be [...]

Parent – Child Select Lists Revisited: Multiple Parent – Child Select Lists Via PHP, MySQL And jQuery

A while ago, I promised to answer Brian’s request for a demonstration of how to make multiple parent / child select lists — in other words, starting from one drop down / select list, having two or more child lists, each of which, in turn, may act as a parent to another list.
Multiple parent-child select [...]

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 Details
I currently have a form where users input their [...]

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 [...]