html
Preparing HTML And PHP Code For Pubilishing On Websites
Wed, 04/01/2009 - 15:17 | by philipnorton42I talked a while ago about Adding Code To Wordpress Blogs And Comments, but I decided that it needed a bit of code to do this automatically.
So here it is, prepared by the text processor.
Install PHPDocumentor
Wed, 01/21/2009 - 11:12 | by philipnorton42PHPDocumentor is a fast and convent way of creating API documentation for your PHP programs and classes. If you are familiar with the world of Java, it works in much the same way as the JavaDoc program, indeed, it is based on this program.
PHPDocumentor can be run in a number of different ways, but I have found that the easiest way is to, again, use PEAR to install everything you need. To install PHPDocumentor using PEAR use the following command.
Convert A sitemap.xml File To A HTML Sitemap With PHP
Wed, 08/13/2008 - 09:12 | by philipnorton42I have already talked about converting a sitemap.xml file into a urllist.txt file, but what if you want to create a HTML sitemap? If you have a sitemap.xml file then you can use this to spider your site, scrape the contents of each page and populate the HTML file with this information.
Using JavaScript To Select Textarea Text
Tue, 07/01/2008 - 08:24 | by philipnorton42This is a simple trick that will allow users to select the contents of a text area. First we need a text area.
HTML And XHTML Doctypes
Mon, 06/23/2008 - 09:08 | by philipnorton42In order to validate any page of HTML or XHTML you will need a doctype. This is a string of text that sits at the top of the document and tells the browser exactly what markup standard has been used to create the page.
XHTML Strict
This doctype is used in an XHTML document when you are not using any framset or depreciated tags.
Submitting A HTML Form Using JavaScript
Thu, 06/19/2008 - 14:29 | by philipnorton42In order to submit a form using an event you need to run a click event on any submit button in the form. Take the following form.
<form method="post" onsubmit="alert('Form submitted!'); return false;">
<input type="text" name="testvalue" value="" />
<input type="submit" name="submit" id="submit" value="Submit" />
</form>
To run a submit event using JavaScript we just find the submit button via the id and run click() against it.