Posts

How to overlap or overlay youtube video with html or How do I fix a YouTube flash video in iframe overlay problem on a ajax popup

How do I fix a YouTube flash video in iframe overlay problem on a ajax popup If you want to overlap or overlay youtube video with you html content or pop up And you having the problem that your pop up or html comes under the youtube video in your website and u had already tried too much code and all the unless so try this definitely this work Please follow the instruction it will definitely works four you... simple copy and paste this code in your header or top of iframe <script type="text/javascript"> $(document).ready(function() { $("iframe").each(function(){ var ifr_source = $(this).attr('src'); var wmode = "wmode=opaque"; if(ifr_source.indexOf('?') != -1) { var getQString = ifr_source.split('?'); var oldString = getQString[1]; var newString = getQString[0]; $(this).attr('src',newString+'?'+wmode+'&'+oldString); } else $(this).attr('src',ifr_source+'?'+wmode

How to convert a string for url? or How to remove space or any special chrecter from my string?

How to convert a string for url? How to remove space or any special chrecter from my string? or How to convert a string in without space and without special character. use this code and you will got  a string for url or add with + sign <?php function filter_text($name){ $name = htmlentities(stripslashes($name), ENT_QUOTES); $name = preg_replace('/[^a-z A-Z 0-9]/','+',$name); $filtered = str_replace(' ', '+', strtolower($name)); return $filtered; } ?> if you got twoo or three + in a string so u can use two times these lines $filtered1 = str_replace('++', '+',$filtered); $filtered2 = str_replace('++', '+',$filtered1); like <?php function filter_text($name){ $name = htmlentities(stripslashes($name), ENT_QUOTES); $name = preg_replace('/[^a-z A-Z 0-9]/','+',$name); $filtered = str_replace(' ', '+', strtolower($name)); $filtered1 = str_replace('++'

How to get Longitude and Latitude from an Address using PHP OR get lat long by address using php

How to get Longitude and Latitude from an Address using PHP OR  get lat long by address using php <?php $geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address='india'+'noida'+'sector'+'63'+'&sensor=false'); $output= json_decode($geocode); $latitude = $output->results[0]->geometry->location->lat; $longitude = $output->results[0]->geometry->location->lng; ?> Use your lan long where you want...

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!