Remote PHP Debugging via Eclipse PHP and Xdebug

Ever dreamed about debugging the php app on live? With Xdebug it becomes possible to actually debug a remote (deployed) php app on your development pc. Here I am going to show you how to do that. Read the rest of this entry »

jQuery Object and DOM Element

I remember being struggling between these two concepts in my early days of jQuery programming, like trying to get value from a jQuery object or call val() on a Dom object, it is not a big issue though, people can get away with that one way or other, but a good understanding will not only help us make fewer mistakes but also move us into the advanced areas of jQuery programming. Read the rest of this entry »

Tags:

jQuery NoConflict in WordPress

As WordPress loads the jQuery library in no conflict mode, $() short cut is no longer supported in javascript in WordPress, this breaks most of the open source jquery add-ons or javascript code we have written before. Read the rest of this entry »

Tags: ,

WordPress Page Specific Hooks

There are many hooks in WordPress for plugin developers to catch as an extension point, downside of it is those hooks will be raised on EVERY PAGE, which is an issue if you need to use a large chunk of javascript only for one page, those hooks called actions and filters are site wide, if not careful large chunk of javascript meant for one page could be emitted to every page, a definitely performance killer. Read the rest of this entry »

Tags:

How To Splice Using array_splice

Array_splice is very useful tool, it looks to me that is the only function you can use to insert an item in the middle of array. Read the rest of this entry »

Page 11 of 21« First...910111213...20...Last »