Posts

Showing posts from November, 2016

conflict with bootstrap and jquery js

if you are already using any jquery js just replace with this js [sourcecode] <script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.min.js" > [/sourcecode]

Autocomplete using ajax call get data from database with json data

Perfectly good example in the Autocomplete docs with source code. jQuery [sourcecode] <script>   $(function() {     function log( message ) {       $( " <div>" ).text( message ).prependTo( "#log" );       $( "#log" ).scrollTop( 0 );     }     $( "#city" ).autocomplete({       source: function( request, response ) {         $.ajax({           url: "http://gd.geobytes.com/AutoCompleteCity",           dataType: "jsonp",           data: {             q: request.term           },           success: function( data ) {             response( data );           }         });       },       minLength: 3,       select: function( event, ui ) {         log( ui.item ?           "Selected: " + ui.item.label :           "Nothing selected, input was " + this.value);       },       open: function() {         $( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" );       },       cl...

Check this out: 'An A-Z Index of the Bash command line'

An A-Z Index of the Bash command line for Linux. alias Create an alias • apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find and Replace text, database sort/validate/index b basename Strip directory and suffix from filenames bash GNU Bourne-Again SHell bc Arbitrary precision calculator language bg Send to background bind Set or display readline key and function bindings • break Exit from a loop • builtin Run a shell builtin bzip2 Compress or decompress named file(s) c cal Display a calendar case Conditionally perform a command cat Concatenate and print (display) the content of files cd Change Directory cfdisk Partition table manipulator for Linux chgrp Change group ownership chmod Change access permissions chown Change file o...

Adding google search location in web page

Image
Just add the following code to run google search location in your web page [sourcecode language="javascript"] function initialize() { var options = {types: ['(cities)'],componentRestrictions: {country: 'in'}}; source = new google.maps.places.Autocomplete((document.getElementById('source')),options); google.maps.event.addListener(source, 'place_changed', function(e) { $typeheaderr = document.getElementById("typeahead_err"); if($typeheaderr) { $typeheaderr.innerHTML = ""; } var addobj = source.getPlace(); $("#sname").val(addobj.address_components[0].long_name); $("#smap").val(addobj.url); $("#slat").val(addobj.geometry.location.lat()); $("#slng").val(addobj.geometry.location.lng()); $("#sgref").val(addobj.reference); if(typeof addobj.address_components[3] == 'undefined') { $("#scity").val(addobj.address_components[0].long_name)...

Calender using jquery and html5

Image
By using fullcalender tool we can add calender in our web page Example code for this calender is [sourcecode language="html"] <section class="content"> <div class="row"> <div class="col-md-3"> <div class="box box-solid"> <div class="box-header with-border"> <h4 class="box-title">Draggable Events</h4> </div> <div class="box-body"> <!-- the events --> <div id="external-events"> <div class="external-event bg-green">Lunch</div> <div class="external-event bg-yellow">Go home</div> <div class="external-event bg-aqua">Do homework</div> <div class="external-event bg-light-blue">Work on UI design</div> <div class="external-event bg-red">Sleep tight</div> <div class="checkbox"> <label for="drop-remove"> ...

Poems on the University — Discover

Image
The language of higher-education procedure and bureaucracy in verse form, with tongue planted firmly in cheek. via Poems on the University — Discover

Php RGB formate to Hex formate

If you have input as RGB formate:rgb(xx, xx ,xx) output formate:#xxxxxx just use below php method [code language="php"] function rgb2hex($rgb){ $str=substr($rgb,4,-1); $colors=explode(", ",$str); $R=$colors[0]; $G=$colors[1]; $B=$colors[2]; $R = dechex($R); if (strlen($R)<2) $R = '0'.$R; $G = dechex($G); if (strlen($G)<2) $G = '0'.$G; $B = dechex($B); if (strlen($B)<2) $B = '0'.$B; return '#' . $R . $G . $B; }[/code] This method will works as you want... Thank you keep visiting..