Posts

How to check all chackbox onclick function via javascript

How to check all chackbox onclick function via javascript <script type="application/javascript"> function checkAllbox(array_with_id_values) {     for (var i = 0, ilen = array_with_id_values.length; i < ilen; i++)     {         document.getElementById(array_with_id_values[i]).checked = true;     } } </script> <a href="javascript:void(0)" onClick="checkAllbox(['a1','a2','a3'])">select all</a> Where a1,a2,a3 are different id checkbox

How to get the value of jquery response in a variable in jquery or call back function

How to get the value of jquery response in a variable in jquery and how to use call function. $('#datajquery').load('<?php echo $this->baseUrl ?>/yourpage.php',{ 'b_askprice1':b_askprice1}, function(data){ if(data != 'No result Found!'){ window.location.href = data; }else{ $('#filter_result').html(data); } }); in this code data will return you the response value via jquery and #filter_result is a id where you want to display your data and #datajquery is a hidden field id where you response data will be save to check the value

Google Maps - Simple Multiple Marker API

Google Maps - Simple Multiple Marker API Google map api multiple marker code <!DOCTYPE html> <html>  <head>    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />    <title>Google Maps Multiple Markers</title>    <script src="http://maps.google.com/maps/api/js?sensor=false"            type="text/javascript"></script> </head>  <body>   <div id="map" style="width: 500px; height: 400px;"></div>   <script type="text/javascript">     var locations = [       ['sagar', -33.890542, 151.274856, 4],       ['Coogee Beach', -33.923036, 151.259052, 5],       ['Cronulla Beach', -34.028249, 151.157507, 3],       ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],       ['Maroubra Beach', -33.950198, 151.259302, 1]     ];     var map = new google.maps.Map(document.getElementById('ma

How to configure url redirection in apache in xampp OR enabling mod rewrite in xampp

To configure url redirection in apache in xampp Or enabling mod rewrite in xampp You should follow these steps for enabling mod rewrite in xampp To enable mod_rewrite in xampp first go to the directory of installation <xampp-directory>\apache\conf   and edit httpd.conf . Find the line which contains #LoadModule rewrite_module modules/mod_rewrite.so uncomment this line means remove hash(#) front of this line (should be): LoadModule rewrite_module modules/mod_rewrite.so Also find AllowOverride None  Should be: AllowOverride All I really think it appears 2 or 3 times on the configuration file. Happy xampping!

how to get middle value from a string in excel or find value between two character or word?

IF you want to get middle value from a string in excel or find value between two character or word? Let ... If the value is  32000=1=10.44|32000=12=7.64|3200 and you want to get "10.44" value It is little bit long way but you can get exact result... First you should use =MID(A1,2,2)     This formula it will return you a string like =MID(A1,9,10) where 9 is the value where you want to start to select value and 10 is that how much character you want to put It will return something like this "10.44|3200" Now you  in other colon use this code for last result =LEFT(B1,FIND("|",B1,1)-1) Use this formula it will return you your value which you want to get like: 10.44

How Do I Determine If A Value In One Column Exists In Another Column? - Excel

How Do I Determine If A Value In One Column Exists In Another Column ? - Excel If you want to know that the value of first column exist in second column in  excel so So place at first column which data you want to check and place in second column which will you compare first column data. Now paste this code in  3rd colum.... =IF(ISNA(VLOOKUP(A1,$B$1:$B$600,1,FALSE)),"","Yes") Simply paste this code and if exist so it will return yes in front of that column.... 

How to get a date before or after 7 days from the current date using php programming?

getting a date before 7 days using php programming here is the code of to getting the date of 7 days before simply copy and paste this code on your page and and run this file on browser. <?php $m= date("m"); // Month value $de= date("d"); //today's date $y= date("Y"); // Year value echo date('Y-m-d', mktime(0,0,0,$m, ($de-7) ,$y)); ?> Note: You can change the diffrence  of date by changing the  " ($de-7)" 7 number to get  according yourself. you can also get a date after 7 days from the current date <?php $m= date("m"); // Month value $de= date("d"); //today's date $y= date("Y"); // Year value echo date('Y-m-d', mktime(0,0,0,$m, ($de+7) ,$y)); ?> Note: You can change the diffrence  of date by changing the  " ($de+7)" 7 number to get  according yourself.