David Walsh Tutorials
Advanced CSS Printing – Using JavaScript Double-Click To Remove Unwanted DIVs
Like any good programmer, I'm constantly searching around the internet for ideas and articles that can help me improve my code. There are thousands of talented programmers out there so I stumble upon some great articles and code snippets that I like to print out...
PHP Email Validator – Email MX DNS Record Check
Validating an email address is one of the hardest feats on the web. A valid email can be marketing gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular expression ("/^[A-z0-9\._-]+"."@" . "[A-z0-9][A-z0-9-]*".
Weekend Links: MooTools AJAX, Prototype 1.6, PHP Tips, SWFUpload, Accessibility, CSS Layouts
Another great week of programming, blogging, and events has gone past. Here are some of the highlights of the week:AJAX Responders In MooToolsGreat article / how to by MooTools legend Harald Kirschner (digitarald) on AJAX Responders in MooTools.http://digitarald.de/journal/ajax-responder-in-mootools/Prototype 1.6 Release Candidate ReleasedI've...
PHP Force Download – Keep Track of What’s Going Down
A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can:Validate that a person is logged inIncrement a counter in a text fileConnect to your database and log IP information...
Removing Internet Explorer’s Active Content Warning on Flash Objects
A couple of years ago Internet Explorer cause millions of programmers and users alike a giant pain by making users click on a flash object, ActiveX object, and java applet before the object became active and usable. Businesses, of course, cried out for their programmers...
PHP Email Encoder – Prevent Spam Bots From Collecting Email Addresses
Police have criminals. PETA has Michael Vick. Bud Selig has Barry Bonds. Programmers have spammers. Email spam is probably the most annoying part of my job. Whenever I'm placing email addresses on a page or coding another web form, I have to expend...
Advanced CSS Cursors – Increase Usability With A Pointer
All browsers provide their own stylesheet which includes settings link colors (blue for unvisited and purple for visited, in IE's case), default padding and margins, text sizes, and cursors. Browsers provide the pointer cursor to make it obvious to the user that the text or...
Advanced CSS Tables II – Using Mootools JavaScript For Alternate Row Colors
As I discussed in Advanced CSS Tables - Using CSS3 For Alternate Row Colors, we will eventually be able to use the ":nth-child(argument)" pseudo-class in CSS3 to provide alternate row background colors. What do we use in the mean time? You can explicitly...
Facebook PHP Code Leak Analysis
It came to my attention over the weekend the PHP code to the Facebook homepage has been posted online. To avoid legal difficulties, I will not post the code on this website but you may find the code here. As a PHP programmer, I...
Weekend Links – New HTML Elements, CSS3 Selector Test, Digg Architecture, Crashing IE6
HTML Added ElementsJust as I called for new HTML Elements, more functional HTML elements, this great article came along. I don't know how much they'll help, but it's definitely a step forward.http://www.ibm.com/developerworks/library/x-html5/?ca=dgr-lnxw01NewHTMLCSS3 Selector TestDoes your current browser support CSS3 selectors?