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, [...]
Dynamically Adding JavaScript To Your ASP.NET Master Page From A Child 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 [...]
JavaScript Function Arguments: They’re An Array And You Can Treat Them As Such
One of the nicest features of JavaScript is the ability to treat function arguments as an array. We all know how to write a function that takes a known number of arguments:
function foo(bar) {
alert(bar);
}
function getArea(shape, measure, unit) {
var output = ‘The area of a ‘ + measure + ‘ ‘ + unit + ‘ ‘ [...]
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 [...]
