Phonegap 2.1 Whitelist rejection with Ajax

For those who are using phonegap 2.1 and want to do web app or want to request external data from your server or others,
you get use jquery Ajax.

url: '',
   dataType: "text",        // <=== new bit
   success: function(data) {

you are using this and get a error of telling you that you have whitelist rejection, here is the solution
open you Xcode phonegap project Navigate to Resources folder, click on Cordova.plist
at the last row, rightclick and chose to "add a new row",
enter the name "ExternalHosts" change Type to arrow,
expand this and add in the link url that you want.
for more infos please read

Import large sql files to phpmyadmin

have you ever encounter problem with importing large files like 300MB or more sql files into your phpmyadmin?
Here is the solution,

Open up your phpmyadmin config file, for me I am using MAMP on Mac,
opens up
[cc lang=”php”]/applications/MAMP/bin/phpMyAdmin/

find $cfg[‘UploadDir’ ] = ‘upload’ ; around line 530, change to
[cc lang=”php”]$cfg[‘UploadDir’] = ‘upload’;

this script allow you to have an option to select the files to upload,
now go to line 143 change $cfg[‘ExecTimeLimit’] = 300; to
[cc lang=”php”] $cfg[‘ExecTimeLimit’] = 0; // maximum execution time in seconds (0 for no limit)

as commented on the script, this prevent you from timeout when uploading a large file,
now go to same folder as create another folder call upload, put you large sql files inside and refresh your phpmyadmin again, go to import option, now you will see the option that allow you to select files that you just put in.

Print Css background in Chrome and Safari

One of the problem that i have with css is that it does not allow me to print background color or background image, luckily Chrome and safari have a solution for that.
Insert the code below to your css.


jQuery Mouse Wheel Slider

This is one of the project that i created for my full time job, which i want to share this interesting jQuery Wheel slider.
If you haven see the slider before, please check out below

[button link=”” size=”small” target=”self”]Demo[/button]          [button link=”” size=”small” target=”blank”]Download[/button]

Lets start with the basic html first
I have included 4 javascript files
Script.js (you can see the code below or download the whole package)
I have also included the html5shiv that allow me to render Html5 in older browsers.
Continue reading “jQuery Mouse Wheel Slider”

Xcode 4.4 first start with Phonegap/Corvoda error

When i first run xcode with Corvoda 2.0  from the phonegap official guide Here i get 2 errors as descried below

‘Cordova/CDVViewController.h’ file not found in MainViewController.h
‘Cordova/CDVViewController.h’ file not found in AppDelegate.h

the only solution that i found is go to preference “Xcode Preferences -> Locations -> Derived Data -> Advanced…” to “Unique”

Usability testing on low budget

In my previous post i talked about usability test and how do you do a usability testing on powerpoint presentation [button link=”” size=”small” target=”blank”]Here[/button]

We all know that the better usability of your website bring you more happy customers, usability testing is one of the way to improve your interaction with the user and easier for them to use and as web designer and developer, we all know how our creation works, but not users, through usability testing is the only reliable way to find out how well the website works.

Continue reading “Usability testing on low budget”