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

Setting up Bitnami server for Perl CGI

Recently I setup a server on my local machine for Perl CGI. I though it would be complicated installing apache server on windows machine but when I started installing it was just a double-click away and tweaking some settings. setup apache server You can download Bitnami which is free. They have great apps pre-configured, you(…)

Read More

Understanding How to Deal with MIME type

If your image upload is not working in internet explorer 7 or internet explorer 8 but it works in IE6, most probably this is because IE6 uses standard MIME type for images but IE7, IE8 uses new MIME parsing library So, if your website allow users to upload images and you are using basic MIME(…)

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

Learn Javascript Online for Free

Learning javascript online is easy now. There are plenty of websites you can download video tutorials from and learn javascript from scratch. You can also signup for classes on different website where you can learn it step by step. Below are the collection of some of the websites for Javascript tutorials. 1. codecademy.com : This(…)

Read More