Programming

Styling HTML Table Using CSS3

1. Beautiful CSS3 code for styling price table Basic CSS .pricing-table { min-width: 670px; } .pricing-table td { position: relative; display: inline-block; margin: 0 5px; vertical-align: text-top; } Plan Section .pricing-table thead .plan td { width: 210px; height: 42px; padding: 15px 0; text-align: center; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .pricing-table thead .plan h2(…)

Read More

jQuery and Editable HTML table

This post is all about javascript and editable HTML table. There are many operations we perform on HTML table using Javascript. such as editable cells, adding rows, deleting rows, Drag and drop, Navigation, search etc. This post will explain every thing with demo and code. How to add and remove rows and columns in a(…)

Read More

How to handle multiple cookies in perl cgi

Lots of time we need to send another cookies with session and failed to do so because CGI::Session header method does not support multiple cookies. Try the code below and let me know if it does not work. $session = new CGI::Session(); $sessionCookie = $q->cookie(-name=>$session->name,-value=>$session->id); #session cookie $cookie1 = $q->cookie(-name=>’cookie1′,-value=>’some_cookie’); #cookie 1 $cookie2 = $q->cookie(-name=>’cookie2′,-value=>’some_cookie2′);(…)

Read More

Simple Javascript to Show Messagebox

This is simple javascript function to show message box. function alert() is use to show a message with ok button. Just put this code in the tags:- And this body code:- you can also do it differently without calling a function onload.

Read More

Writing Your First Perl CGI with Ajax

There are Ajax perl packages available to implement Ajax in perl-cgi. But in this post we are not going to use the package. It is very simple to do add, edit, delete operations using ajax. I have divided this into three section. First writing javascript file, second writing cgi in perl or html file and(…)

Read More

Writing Your First Python CGI – Ajax Script

This post will demonstrate how to write your first Python-CGI script with leveraging Ajax technology. You have to install python from http://www.python.org. After installing python set the path environment for path. Create a directory for your project and create run.bat with “python-m CGIHTTPServer”. In cgi-bin directory create a file time.py The best part is that(…)

Read More

Simple C Program to Understand Stack

#include #include #include char *Temp(const char *src,int len) //An array is allocated on the stack,the contents of the stack frame has been released, which may produce unpredictable results { char temp[15]; memcpy(temp,src,len); return temp; } char *TempM(const char *src,int len) //function apply dynamic memory, if you forget to release memory it may cause a memory(…)

Read More

Populate Dropdown from JSON Data

You can dynamically populate drop-down using JSON data. Either you can create a JSON object from database or get the JSON content from a file and populate drop-down depending upon the value of first drop-down. JSON data should be in such a format so that key should be the value of first drop-down and associated(…)

Read More

Hide Table Rows and Columns Using CSS and jQuery

There are many ways you can hide table elements. Javascript or css can be leveraged to hide table rows and columns. You can also use Datatables API to hide table elements. If you want to show or hide table rows dynamically you can use below code with datatables. $(document).ready(function() { $(‘#example’).dataTable( { “sScrollY”: “200px”, “bPaginate”:(…)

Read More

Understanding SQL Joins Using Pictures

While finally found a valid explanation on other pages (there are a few) leads me to this post. What is the difference between an inner join and left or right join? The most common of which are internal joins between tables ( inner join ), as an example I will say that in the last(…)

Read More

Delete WordPress Post from MySQL Database

Sometimes we need to get into MySQL to delete post in bulk. If you are using autoblog poster and you want to delete post within a date range or in a particular directory this SQL script is very handy for you. If you search for plugins you might come up with many . I searched(…)

Read More

Creating HTML Table Using JSON File

This is very simple script which explains how to use JSON file to generate HTML table. including all the packages. It is important to include JSON package before trying to use JSON in your perl program. #!/usr/bin/perl -w use JSON; use CGI; use CGI qw(:standard Vars); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use strict; Creating header for(…)

Read More

Move File from One Directory to Another Using Java

Java does not have move file file function in io. You can copy the file in destination folder and then delete the original file. Below is the function which take a filename, from location, to location and copy the file. private static boolean MoveFile(String fileName, String source, String destination) { String fileName = fileName; byte[](…)

Read More

How to Choose Best IDE

A good development tools can effectively shorten the development time while a bad IDE would give you a headache, limit your choices, and even bad experience while developing an application. To became a good developer one key of success is to find an excellent development tool / IDE, which should provide you with the largest(…)

Read More

Populate Dropdown With Directory Content Using Perl

Recently I had to create a combobox which should be populated by files list in a directory. I have been trying to fill a drop down using Javascript. But after some research I came to know that it could produce some security rist to website. Well I am not concern about the security rist because(…)

Read More