Class Snippets


Example source code for function pointer to member function of class

C++ code snippet for function pointer to member function of class

14 May, 2014   

Html Code example for hCalendar

To create the formatter paste this code into a new file and name it sfWidgetFormSchemaFormatterDefList.class.php. I saved it in /lib but it also makes sense to put it in /lib/form, depending on your personal preference.

30 January, 2011   

Applying Even/Odd Classes

16 February, 2011   

HTML5 Article Structure with hNews

HTML5 code for Article Structure with hNews

09 November, 2011   

How to set style of borders. here shown an example.

18 January, 2011   

Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.

11 July, 2013   

Help manage mysql database common task

15 December, 2011   

An Example Java Code for Composition with public objects

11 September, 2011   

This is a minimal apache ant build.xml file that will quickly do all the things that you will generally want to do, including compiling and building a simple Java project to class files and jars. It provides targets to compile the class files and jars and to run the main class. The fields marked "My Project Name Here" and "My Main...

Automatically Discover Document Links And Apply Class

Code snippet to remove class after delay in jQuery.

When creating a new object, pass the initial variables as an array. Then use this code to quickly assign the array vars to the class vars. This will mean importing large arrays into the object in three lines of code.

09 June, 2014   

JavaScript code for click to edit a table cell inline.

13 April, 2013   

Load and store classes for easy use and re-usability using advanced PHP object storing.

Take array and create multiple columns, define divisible by value ($divis) from total results then use modulus within the loop. This example shows multiple columns for unordered list items.

10 June, 2013   

A function that returns an array of elements based on DOM element, tag, and class name. For instance, getElementsByClassName(document, 'tr', 'info') will return an array of all "tr" tags under the document node having the "info" class.

17 January, 2013   

Showing very simple code using classes by C++ program