JQ widgets – ready made Web UI controls and widgets

jQWidgets provides ready made widgets and controls for Web UI and Mobile. It already has 60+ UI controls and widgets such as buttons, charts, directory trees, tabs, menus, loader, progress bar, and etc..

jQWidgets is built on HTML5, Javascript, and JQuery.

Main benefits of using jQWidgets are:

1.) Compatible on all web browsers ( IE, Safari, Chrome, Mozilla, and etc.. )

2.) Already implemented widgets and controls, no need to create one from scratch

jQWidgets also provide integration to other popular and widely ised web frameworks such as AngularJS and Twitter Bootstrap.


jQWidgets integration with AngularJS


jQWidgets integration with Twitter Bootstrap


Available widgets for web


Available widgets for mobile


jQwidgets also provide web site themes



DataTables JS : Quick way to created sorted tables in HTML

DataTables JS is a Jquery plugin to create HTML tables with sorting and paging. No need to code all the table functionalities, just set the data on the JS file and call the Datatables function.

Here’s the main page:

Here’s a very basic example with HTML ( in a tr and td format ) and three lines of JavaScript.

Here’s a server side processing using PHP. Notice that the HTML is reduced to Header and Footer of the table.

Here’s an example on how to use DataTables using JSON and Java.

And here’s a step by step example on how to use DataTables using JSON and Java


DataTables loads all data as retrieved and then it has the option to display it via paging. It does not yet support Server data retrieval by each page click.

Parallax Webpage effect : Using Materialize CSS

Parallax: A viewing effect that a foreground moves at a faster speed than its background. One example is when your riding a bus or car and you’re looking beside the road. Notice that the trees moves faster than the clouds in the background.

I created a HTML Parallax page using Materialize CSS. Materialize CSS is a Web UI Framework composed of CSS and JS files.

See their about page: http://materializecss.com/about.html

The sample HTML is using the Materialize CSS and JS files compilation provided. the CDN method is not used, so the sample can run offline.

Step 1.

Jquery 2.1.4 is required for Materialize CSS. Also download the Jquery 2.1.4 ( as used for Materialize.js ).
Important:  JQuery should be in the first order of import, then Materialize.js comes next, or else it would not work.

Step 2.

Download the Materialize CSS files here:

Step 3. 

Create the two component files as needed. One for the html where all the Materialize CSS and JS are needed. And the other is the JS file to initialize the Parallax function. The source code is given below.

Here is the HTML Parallax page I created.

Here is the demo from materializecss.com

<link rel="stylesheet" type="text/css" href="materialize-v0.97.0/materialize/css/materialize.min.css">
<div class="parallax-container">
    <div class="parallax"><img src="../parallax/images/family_mart.jpg"></div>
  <div class="section white">
    <div class="row container">
      <h2 class="header">Parallax</h2>
      <p class="grey-text text-darken-3 lighten-3">Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling.</p>
      <p class="grey-text text-darken-3 lighten-3">Integer vitae justo metus. Etiam ut mauris ut turpis imperdiet hendrerit. Etiam dictum augue neque, eu pulvinar nisi faucibus quis turpis. Suspendisse convallis, felis vitae laoreet rhoncus, magna dui congue nulla. </p>
<div class="parallax-container">
  <div class="parallax"><img src="../parallax/images/cbp.jpg"></div>
<script type="text/javascript" src="jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="materialize-v0.97.0/materialize/js/materialize.min.js"></script>
<script type="text/javascript" src="parallax_init.js"></script>
  <div class="section white">
    <div class="row container">
     <p class="grey-text text-darken-3 lighten-3"> Cebu CM Solutions
      quis augue ac sem suscipit laoreet in quis ipsum. Curabitur enim sapien


Picture Catalog in HTML and CSS

I created a picture catalog in using HTML and CSS. I will show the source codes and the sample screen shots. A website picture catalog is a set of pictures shown in a tiles or grid pattern. This displays the products, it’s price and other details. The sample pictures I have are taken from my other site : cebucmhotels.wordpress.com.

I used the Sublime text editor to create HTML and CSS. In the samples, the images will automatically arrange when the resolution is adjusted.

See the sample code below.

<link rel="stylesheet" type="text/css" href="format.css">
<body bgcolor="#181818"> <!-- sets the entire page background -->
<ul class="products">
        <img src="../catalog/sogod.jpg">
        <a href="#" style="color:white">    
            <h4>North Sky Resort Sogod</h4>
            <p>Sogod, Cebu</p>
        <img src="../catalog/rancho-cancio.jpg">
        <a href="#" style="color:white">   
            <h4>Rancho Cancio</h4>
            <p>Busay, Cebu City</p>
        <img src="../catalog/marriot.jpg">
        <a href="#" style="color:white">    
            <p>Cebu Business Park</p>
        <img src="../catalog/plantation-bay.jpg">
        <a href="#" style="color:white">    
            <h4>Plantation Bay</h4>
            <p>Mactan, Cebu</p>
    </li><!-- add more list items -->

ul.products li {
    width: 370px; /* adjust the size of the catalog block */
    display: inline-block; /* this creates the catalog effect */
    text-align: center; /* align the image to center */
    background-color:#282828 ; /* background color of each */
    font-family: "Trebuchet MS", Helvetica, sans-serif; 
    border-radius: 10px; /* rounded borders effect */
    border: 2px solid #585858; /* border and color */



1.) Do it with CSS and HTML first

Seamless Responsive Photo Grid

2.) Product View Grid

Using inline-block to Display a Product Grid View

3.) 3×3 html grid


References using angular JS ( but I did not added angular JS yet )
making a photo slide show with angular JS




Hide a textbox and label on dropdown select using Jquery

Here is a sample code on how to hide a text field and its label on dropdown select. See the inline comments for description of each line.

//the "select" drop down has the class name "account_type_class"
//ex. <select id="account-type" class="account_type_class" >	

 //get the selected value. This is the "value" set in jsp
 //assigned to an "option"
 //ex. <option id="a-type_business" value="business">Business</option>		
 var value = $(this).val();

 if(value === "business"){
   //This code shows the label 
   //This code shows the textbox
 //in this case, we hide the label and text box
 if(value === "personal"){

Here’s the JSP code snippet.

<label>Account Type
<select id="account-type" class="account_type_class" >
  <option id="a-type_business" value="business">Business</option>
  <option id="a-type_personal" value="personal">Personal</option>
<label>Account Name <input type="text" name="accountname" id="s-name"></label><br/><br/>
<label for="cust_name">Customer Name <input type="text" name="customername" id="c-name"></label><br/><br/>

jquery-1.11.3.min.js version is used.

JQuery, Angular JS and Java

Update: One main difference of Angular JS from Jquery is that Angular JS binds HTML elements and controls it in HTML/JSP file, with much less usage of the *.js ( javascript ) unlike Javascript with JQuery. Angular JS has additional attributes called Directives.

Angular JS – A new Javascript Framework that was launched last 2009. For some background, Javascript is a Client-Side scripting for websites. In layman’s term ( or just to make things easier to understand ), Javascript is used to manipulate the menus, buttons, and text fields in a website. Then JQuery comes in as an enhancement ( a set of JavaScript libraries / standard codes ) to encapsulate routine JavaScript code. JavaScript with JQuery creates a much better and code, and with lesser lines, than just JavaScript alone.

Then here comes Angular JS. Angular JS is a Framework. Its not an-add on Library unlike JavaScript. But first, Let’s differentiate a Framework from a Library. To start, a library is a set of additional instructions, mostly common functions that are simplified that are ready to use. Think of it as a set of tools in a tool box. Framework, as other developers say, is just the same as a Library. But then why is it called Framework? For example, Spring Framework as just a Spring Library? Well, I think here’s the difference. Yes a Framework is also a set of common used functions, but the difference is that a Framework is a built-in software platform that is used to enhanced software. Libraries may relate to tools, while Framework may relate to a simple mechanical machine. For example, you can use a pen, a paper and a cash box as a cash register. This is a similar concept of a Library. But then you use a cash register machine, which is a similar concept of a Framework.

Angular JS can write lesser code than JQuery. And Angular JS can do more stuff than JQuery, especially in the unit test area. These are the two main reasons why a lot of Software Developers / Companies are trying out Angular JS development. But other experienced developers are sticking to the JQuery, since Angular JS is not yet time tested. There are still some hesitations, but there is potential.

Here are some reference links on Angular JS:
– JQuery / Angular JS comparison

– Offical Angular JS page

– Angular JS and Java Backend intergration using REST

Search/Filter a text list by Javascript key-up

Here’s is a sample code on how to search through a list in Javascript. This code will search from a list of texts from a given key word, and triggers upon key-up ( after typing a keyword/letters ).

For example, given the following list below:


Then if given the keyword/text “qui”, it then displays this list


Here is the sample code:

 var query = $(this).val().toLowerCase //search is case insensitive
 var index;
 var listMember;

 $.each(contactList, function ( Key, val ){
  index = val.index;
  listMem = val.listMember;

 if(listMem.toLowerCase().indexOf(query) !== -1)
 } else {

Class names may vary, depnding on the JSP/HTML code.