Tuesday, July 31, 2012

Load JSON Data Using Ajax


<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>

<script type="text/javascript" >

$( '#page1' ).live( 'pageshow',function(event, ui){
  getData();
});

Monday, July 30, 2012

How to solve Ubuntu Drive Mount error

Open the Terminal.
Go to Applications > Accessories > Terminal

Type below Code in terminal and press enter

$ sudo apt-get install ntfsprogs


This package has a nice collection of tool for ntfs drives. To fix your problem check your drive name like /dev/sda2.

and type below code.
$ sudo ntfsfix /dev/sda2

This should fix the disk. Reboot your computer.
I hope it will help you..:)


Create JQuery Mobile Multiple page


<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head>

Thursday, July 26, 2012

Unable RAR file support in the Ubuntu Linux.


Now, open the terminal from Applications > Accessories > Terminal or Press Ctrl+Alt+T and run the following command:
sudo apt-get install rar unrar
Now you able to extract the.rar files.
Cheers..

Some Css tricks for square and triangle..

Hello...
Style sheets are the way that standards-compliant Web designers define the layout, look-and-feel, and design of their pages.  and trough the css webpages looks great.
Some times we have to use images instead of the css. because we are aware of some tricks of the css. 
here i share some tricks. 

1) Triangles in the Square.

in above image. i have use the css to create square using 4 triangle.
CODE:

<style>
.triangle{
border-left: 200px solid red;
border-top: 200px solid yellow;
border-bottom:200px solid green;
border-right: 200px solid blue;
display: inline-block;
}
</style>