Monthly Archive: February 2012

google translate selected language 0

google translate selected language

google translate selected language   A very common problem is to add google translator with already selected language which can be fix by the following code. function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: ‘en’, includedLanguages:...

set google translater default language, google translate default language 0

set google translater default language, google translate default language

set google translater default language We can set google translate default language by working with cookies for this first use google translate to translate your web page then see what cookies he has created...

call a function after a particular time period, 0

call a function after a particular time period,

call a function regularly call a function after a particular time period function getdata(){ var langu = jQuery(“.goog-te-combo”).html(‘<option value=””>Select Lanugage</option><option value=”en”>English</option><option value=”ja”>Japanese</option>’); jQuery(“.goog-te-gadget”).css({“margin-top”:”0px”}); intervaltime(); } </script> <script> function intervaltime(){ window.setInterval(function(){ getdata(); }, 5000); }...

drupal 6 basic form , create form in drupal 0

drupal 6 basic form , create form in drupal

drupal 6 basic form <?php function test_myform($form_state) { // Access log settings: $options = array(‘1’ => t(‘Enabled’), ‘0’ => t(‘Disabled’)); $form[‘access’] = array( ‘#type’ => ‘fieldset’, ‘#title’ => t(‘Access log settings’), ‘#tree’ => TRUE,...

finding mac address 0

finding mac address

finding mac address finding mac address <?php /* * Getting MAC Address using PHP *Kapil sharma */ ob_start(); // Turn on output buffering system(‘ipconfig /all’); //Execute external program to display output $mycom=ob_get_contents(); // Capture...

online streaming in php,cctv in php 6

online streaming in php,cctv in php

online streaming in php,cctv in php online streaming,cctv in php WOWZA is a server that is use for live steaming

validation of number in javascript 0

validation of number in javascript

validation of number in javascript function check_number() { var number=document.getElementById(“mobileno”).value; if(isNaN(number)) { alert(“number only”); return false; } else { return true; } }

increasing date or how to get next date to current date or date in loop 0

increasing date or how to get next date to current date or date in loop

increasing date or how to get next date to current date or date in loop for applying date in a loop you have to increasing date according to your condition. so there is a...

stop web pages from refreshing or disable menu bar 1

stop web pages from refreshing or disable menu bar

stop web pages from refreshing or disable menu bar and status bar and tool bar in browser and disable right click hello frnds basically refreshing is depend on browser so one cant say that,...

check database for array of values 0

check database for array of values

check database for array of values example:UPDATE tableName SET someColumn = “updated” WHERE id IN(1, 88, 99, 152) so it can be done by for($i = 0; $i < count($arrayOfIDs) $i++) { if($i ==...