Posts

Showing posts from 2013

Code for get data facebook likes category wise as a music

Note :- Use the facebook login and get token. <?php $token = $facebook->getAccessToken(); $_SESSION['token'] = $token; ?> -------------------------------------------------------- <?php ################################ List of Music ######################################### if(isset($_REQUEST['category_id']) && $_REQUEST['category_id'] == '2') { /*----------------------------------------------------- Fb Music Acess----------------------------------------------------------------*/ ################## User's Friends like ################################ $params['access_token'] = $_SESSION['token']; if(!isset($_SESSION['fb_likes_music'])) { $graph_url = "https://graph.facebook.com/me/friends?access_token=". $params['access_token']; $friends = json_decode(file_get_contents($graph_url)); $fb_friend=array();  $j=0;  $fb_likes_music=array(); foreach($friends->...

how to show loader image before loading ajax

<html> <body> <script language="javascript">function loaddata(){ datastring = 'favour='+id+'&itemsId='+chkItem;                         jQuery.ajax({                         type: "POST",                           url: "cuponcode.php",                           data: datastring,                            beforeSend:function(){                         jQuery('#overlay_loader').css("di...

Disable right click script and Google Instant Map Search

<!DOCTYPE html created my solomon  > <html>     <head>         <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>         <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>         <title>Google Instant Map Search | spixup- demo </title>         <style type="text/css">             #map_canvas{                 height: 400px;                 width: 500px;                 margin: 5px auto;             }      </style>     </head>     <body> <SCRIPT TYPE="text/javascript"> //-------------Disable right click script ------------ //visit http://www.rainbow.arch.scr...