<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="jquery.dataTables.min.css"...
Sunday, May 31, 2015
Thursday, May 28, 2015
How to fix any HTML tag at any position
Problem:
How to fix any HTML tag at any position for ex: fix a div at right bottom corner?
Solution:
Use style z-index, bottom, right attribute
Example:
<div id="loading_msg" style="position: fixed; z-index: 99; bottom: 15px; right: 10px;
display:; background-color:#CC99FF">Loading now Please wait...</div&g...
Tuesday, May 26, 2015
Scrolling paging in PHP
Problem:
Database paging without paging page number. This is same as Facebook and Tumblr like paging.
Solution:
By using Ajax you can achieve that like scroll paging.
Example:
Use below code. Assuming 1 to 10th records already showing.
index.php
<script type="text/javascript" src="jquery-1.6.js"></script>
<div id="mydiv">
<p>Database...
Monday, May 11, 2015
Message: Undefined variable: 0 in CodeIgniter PHP
Problem:
Sometime while working with CodeIngiter / PHP you may encounter "Undefined variable: 0" error.
It surprise to that is "0" (Zero) could be a variable!
Solution:
This "Undefined variable: 0" error come when you use double dollar sign in variable. so remove one dollar ($) sign from variable and error will gone.
Example:
See the below code,...
Wednesday, May 06, 2015
How to convert eps file to jpg file
Problem:
How to convert .eps file to .jpg file
Solution:
It is simple, use ImageMagick and below java code. if you expert in PHP or .Net then you can easily convert it same as me.
Example:
import="java.util.*"%> import="java.io.*"%>
try { Runtime runTime = Runtime.getRuntime(); ...
Tuesday, May 05, 2015
How to load JavaScript file async in Magento
Problem:
By async loading JavaScript it will boost up your site, so how to load JavaScript file async in Magento. In Magento there are two methods to load JavaScript .
1- By addItem
2-By addJs
Solution:
By using async option in <params>async</params> script tag you can load it.
Example:
Open your local.xml file it will be in the...