Category Archives: Html

Internet Explorer 8 and event.preventDefault() Problem

I was trying to use event.preventDefault in a function called by an onclick method of an anchor tag. Although this worked fine in Firefox and chrome, naturally, I.E. would find it necessary to treat this differently. IE 8 sadly does … Continue reading

Posted in Html, JavaScript | Tagged , , , , , | 4 Comments

Jquery Validation Plugin with multiple forms

I love using the Jquery Validation plugin on my html forms. It makes frontend validation very easy and painless. However, today I noticed a strange problem, when I was pressing the submit button on a form, it was requiring fields … Continue reading

Posted in Html, JavaScript, jQuery, Plugin | Tagged , , , , | Leave a comment

Javascript Associative Array Empty?

I was trying to form an associative array in javascript and made the mistake of trying to form it with the following code. When I dumped the variable I found it was empty. As to be expected, this is another … Continue reading

Posted in Html, JavaScript | Tagged , | Leave a comment

PHP Output Buffering (with HTML)

Over the past year I have made heavy use of PHP output buffering. Although it serves no function purpose, it can make for much more readable code; I have found it particlarly useful for outputting HTML from methods. Consider the … Continue reading

Posted in Html, PHP, Uncategorized | Tagged , , , , | Leave a comment

HTML 5 and Required Inputs

Another promising (and partially implemented) feature of HTML 5 is required fields. Firefox 6 already lets you take advantage of this attribute. The required attribute forces users to fill out a field before allowing them to submit a form. If … Continue reading

Posted in Html | Tagged , , , , , | Leave a comment

HTML and Limiting Character in a Textarea

By adding the attribute maxlength=”23″ you can limit the field to 23 characters. The browser won’t allow the user to enter anything longer than the number you specify. For those of you with recent versions of Firefox or Chrome, you … Continue reading

Posted in Html | Tagged , , , , , | 2 Comments

Loading XML along with HTML for Your Javascripts to Use

If you have JavaScripts that rely on certain xml data in order to operate, you might be tempted to use the document body’s (or JQuery’s) onload event handler to perform an ajax request to get the xml immediately after the … Continue reading

Posted in Html, JavaScript | Tagged , , , , | Leave a comment