about 3 months ago - No comments
This is a bit tricky when you are parsing XML with jQuery. As you will realize, all HTML passed is ignored, and only the text is displayed. I have seen many people do this, which unfortunately won’t work!
$(xml).find(’element’).each(function(){
if($(this).html() < 0){
alert($(this).html())
}
});
Now this will throw an error, you can’t take HTML from XML attributes like that!, you More >
about 3 months ago - No comments
In part one of my tutorial on iPhone web development, we talked about the basic stuff (Recognizing iPhones or iPods, setting up special HTML and CSS tags… ) we will now move on to the really clever bit: Orientation detection.
For many sites, we may just have the same thing both on portrait and landscape. But More >
about 4 months ago - 1 comment
Working in a project recently I found myself in the need of playing a sort of “alert” sound with JavaScript. It turns out there are not so many good options out there. The first thing that came to my mind was to use an embed and the Play and Stop JavaScript controls.
Well that only works More >
about 10 months ago - No comments
I was building a site for a relative new company a couple weeks ago, and they wanted “A professional looking, brilliant display” for their products, I know Flash, and can do decent stuff with it, but seriously, how long does it take to do something really cool?
So I headed to the only place where I More >
about 10 months ago - 1 comment
Tabs are nice. They create a very elegant interface, and jQuery UI does this marvelously, here we have a little preview of this:
How to do that?
Include the files
With jQuery and jQuery UI it is dead simple. First, load the JS libraries, I recommend using the hosted files at Google for jQuery:
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="path/to/jquery UI" More >
about 11 months ago - 3 comments
There is a new BOT out there, and one of the bad ones. I have started receiving traffic from it in my servers over the past week, and after some investigation it turns out it is quite a powerful bot, and so simple to use even a kid with a computer could use it.
The bot More >
about 12 months ago - No comments
If you ever wanted to calculate someone’s age in PHP from a birth timestamp, you must take into account that the age is more than the number of years, since days and months are also important, so I wrote a simple function that will return the exact age for a given timestamp:
function getAge($birth){
$t = time();
$age More >
about 1 year ago - No comments
Hello people,
I want to share with all of you a file upload class I have developed, that makes it stupid simple to upload files haha
The PHP class:
First of all, here is the PHP class you will need:
< ?php
//Uploader class, by Alex
// This class is meant to handle all kinds of file uploads for DJs Music
// More >
about 1 year ago - No comments
A very cool way to display stuff on a website, is using a Matrix style. It is also quite common amongst hackers, and most of the people who have hacked a site for the sole purpose of proving they can like to display their hacker name in the index file, sometimes using JavaScript matrix style.
View More >
about 2 years ago - 3 comments
I normally write to those web developers/programmers who are already good, experienced, and thus the articles are somewhat advanced.
But today I got up feeling nostalgic I guess, or I just felt like remembering back on my www birth, on my first impression of the Internet, my first site online, my first steps in w3c standards, More >