I have mentioned before that I don't like Javascript. I'll be honest about the reasons. Some may say it's not safe or that the code is too permissive… whatever! I say I'm too lazy to learn it the way I like to learn a normal language, and I feel I have too many bits and bytes that I have to search for in an endless chaos to find the right docs.
Anyway, I finally found the easy way out. I had previously thought I did, when I found the prototype library. It was a nice one, and still is. However, it's lacking a good documentation. But now, I found an even better solution: the jQuery library. You might take a look at their site, it's quite loaded with features and docs, even plugins that help a lazy old programmer do new tricks.
One thing I made using jQuery is the following
';
// snippet
while ( $row = mysql_fetch_assoc($res) ) {
if ( $row_num % 2 == 0 ) {
$table .= '';
} else {
$table .= ' ';
}
$table .= ''.$row['ID'].' ';
$table .= '';
$table .= '...';
$table .= ' ';
$table .= ' ';
$table .= '';
$table .= 'more information ... ';
$table .= ' ';
$row_num += 1;
}
/* snippet */
.more {
display: none;
}
Similar Posts:
- None Found
No Comments
You can leave the first : )