Friday, August 24, 2012

Create .htaccess file for the HTML site

Create one text file name is 'htaccess.txt' in the root directory of the server.
and copy below text in htaccess.txt file.

Below is a basic structure of the htaccess file.
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>

Tuesday, August 14, 2012

Thumbnails slider is too wide! Please reduce the number of thumnail images or size. in HOT Joomla Gallery

When HOT Joomla Gallery load in ie9, safati and chrome I found the error message like "Thumbnails slider is too wide! Please reduce the number of thumbnail images or size."

SOLUTION:
write below code in the header section and reload the gallery page.

<?php
//remove mootools.js and caption.js
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
 unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
?>

and find out the below syntax in header of index.php page and comment it.
JHTML::_('behavior.mootools');

I Hope it will help you:)

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>