What is DHTML?
DHTML may sound like a language but it’s not. DHTML is a term for making web pages dynamic and interactive, by combining the power of HTML, JavaScript, DOM and CSS.
No comments yet.
No trackbacks yet.
DOM Parsing With Python
about 5 months ago - 1 comment
This guide assumes you have basic knowledge of python and have done at least some work with HTML, XHTML, and/or XML.
Background
DOM stands for Document Object Model. It is a convention used in HTML, XHTML, and XML for representing and interacting with objects. As fairly well described by the name, things like HTML have many elements More >
Differences between HTML and XHTML
about 5 months ago - No comments
XHTML stand for EXtensible HyperText Markup Language which is a combination of HTML and XML. In early 2000 XHTML 1.0 became a W3C Recommendation. If you are still using regular HTML, it’s time to change. XHTML isn’t just the future, it’s the now, and HTML is phasing out. But don’t worry More >
The XHTML DTD (Document Type Definitions)
about 5 months ago - No comments
All XHTML documents have three main parts:
DOCTYPE declaration
<head>
<body>
The DOCTYPE must be defined before anything else in the document.
Everything but the DOCTYPE declaration will look like HTML, XHTML just holds you to a few rules. That’s the beauty of XHTML!
There are three types of DTDs:
STRICT – This one is my personal favorite. It forces More >
An XPath quick reference
about 5 months ago - 1 comment
This is a very brief quick reference for those of you who know what XPath is, but don’t use it often enough to have it ingrained in your heads, like myself.
XPath Examples
//person
Returns a NodeSet containing ALL XML tags in the document with the name ‘person’, no matter where they are in the document.
//person[@firstname='patrick']
Returns a NodeSet More >
Calling JavaScript when a webpage loads
about 5 months ago - No comments
There are a couple opportunities for calling a JavaScript function or running JavaScript coded when a web page loads in a person’s web browser.
One method is to run a script using the body tag’s onload event. Here are a couple examples:
<!– Call a function –>
<body onload="sayHello();">
<!– Run multiple commands –>
<body onload="var hello_world=’Hello World!’; alert(hello_world);">
Or you More >
Allowing users to login using HTML and PHP
about 5 months ago - 2 comments
A form is an area of a web page where your website’s visitors can enter information and submit it. They might fill out a contact form, or use a small form to login to your system. They come in handy and in many cases are a necessity. In this tutorial we will More >
Working with session variables in PHP
about 5 months ago - 2 comments
Let’s say you are creating a website where users need to login. How do you track a user’s id from page to page, or even verify that a user is logged in when they should be? You can use the global $_SESSION variable!
The $_SESSION is an array where you can store your variable More >
AJAX and PHP
about 5 months ago - No comments
AJAX in a word… SWEET! I love it. AJAX stands for Asynchronous JavaScript and XML. Basically it allows your web page to load content AFTER the web page has already loaded. This comes in handy when you want to perform actions on a web page or change content but don’t want More >
The SimpleImage Class
about 5 months ago - No comments
In a previous tutorial we learned how to upload an image using HTML and PHP. Now we will talk some about the image functions built into PHP, specifically how they can be used to resize and save images.
Let’s say the users on your website can upload their profile picture. You might be able More >
How to upload a file using PHP
about 5 months ago - No comments
One of the cool things about server side scripting is the ability to upload files from a user’s computer to your web server. In this tutorial I will demonstrate PHP’s ability to capture uploaded files and save them on the web server. Our sample takes a user’s photo and saves it to a More >