Archive for the 'Quick Tip' Category

Developing Facebook applications makes you rich

It was reported by SmartMedia, that some Indie developers managed to pull in USD $700,000 in ads revenue in the month of December last year from the Facebook applications that was developed by them.

Continue reading ‘Developing Facebook applications makes you rich’

Bookmarked: 70 useful ajax and javascript techniques

SmashingMagazine has published 70 useful ajax and javascript techniques, it’s a handy resource that I shall explore one by one later. There are many cool animated calendars, timelines, menus, tool tips, sliders built using ajax and javascript techniques.

How to recover deleted files emptied from the Recycle bin

I know it’s a disaster, when you’ve mistakenly deleted some important files or documents and you’ve mistakenly emptied the recycle bin of your Windows again. If you’ve done both, in your mind those files must have been completely gone, there is no way for you to have the files back in Windows, it’s just like a complete disaster to you now.

Continue reading ‘How to recover deleted files emptied from the Recycle bin’

Sorting data made easy using JavaScript table sorter

javascript-table-sorter
If you’re asked to build a PHP script that pumps out some data from the database and presents in an HTML table to the users. And on the first row of the table, shows the titles of each field (As pictured above). Once the user clicks on each title the data in the column need to be sorted. If you implement this in a server-side scripting such as PHP, it’ll then need to send the request back to the server to get the server-side PHP script to sort the data by changing the “ORDER BY” in an SQL statement.

Continue reading ‘Sorting data made easy using JavaScript table sorter’

Javascript: Auto refresh or reload parent window when closing a popup

Lets say you have a page that gets a user to click to open a pop-up window to prompt the user for the required action. When the user has completed the required action on the pop-up window, and clicks the button “close”, you want the parent window to be refreshed or reloaded for its content.

Continue reading ‘Javascript: Auto refresh or reload parent window when closing a popup’

JavaScript, how to copy DIV’s or SPAN’s content to clipboard

In one of my previous posts, I had a DIV that contains some codes, and I wanted to have this code to be able to be copied by someone onto a clipboard for better viewing. So, what I had was only a very simple javascript function for doing it. And note, it works on Internet Explorer only.

Continue reading ‘JavaScript, how to copy DIV’s or SPAN’s content to clipboard’

CSS gets Object-Oriented

CSS guru, Nicole Sullivan, has a way to make CSS Object Oriented. To me, CSS would then be possible to be used with useful features found in Object Oriented programming languages, such as Java. So, inheritance, properties overriding should be possible with the OO CSS? Lets look at what the guru has to say:

Continue reading ‘CSS gets Object-Oriented’

CSS to inline styles converter

The previous post I’ve written about that GMail strips CSS (included in <style></style> or included as external CSS) in an HTML-based email. In order to have GMail to display an HTML-based email properly without losing the original CSS formatting, you’ll have to convert the CSS used in the web page or HTML-based email into inline styles.

Continue reading ‘CSS to inline styles converter’

A simple Java FTP connection + file download and upload

The Java or JDK comes with NO support of any official API for FTP connection. But there is an internal that comes in the sun.net package, but this is NOT well-documented, and you will hardly find how to use other methods within the sun.net.ftp.FtpClient class.

Continue reading ‘A simple Java FTP connection + file download and upload’

Gmail strips CSS of HTML email, you must use inline CSS for GMail

Wonder why the HTML based email sent out by your PHP script will NOT display properly in GMail? GMail will strip all the CSS that is included in between the <style></style> tag pair (internal stylesheet) or the external style sheet included, such as
<link rel=”stylesheet” type=”text/css” href=”http://mycss.com/my.css” />.

Continue reading ‘Gmail strips CSS of HTML email, you must use inline CSS for GMail’