Autocomplete widget allows to search and select results from a pre-populated list and the source can be from database, array etc. Once you start typing the widget starts searching for results to matched results. One of the issues which I find with autocomplete is that it gives the user an option to select from the […]
ReactJS – JSX
What is JSX JSX is an XML-STYLED syntax for use in javascripts. JSX is a preprocessor step that adds XML syntax to JavaScript. Just like XML, JSX tags have a tag name, attributes, and children. If an attribute value is enclosed in quotes, the value is a string. Otherwise, wrap the value in braces and […]
ReactJS: Framework
React Framework What is ReactJS ReactJS is a javascript framework from Facebook (javascript library) which is narrow in scope but tightly focused. It is concerned with rendering the view with data state(dataset) and viewer state(UI). It is a two way binding with model and view and not using the controller. It turns the javascript into […]
Weight Concern
Ways to reduce weight: Dieting Stomach fat burn Soup Dieting Swedish Diet Meat and dairy lovers can try this if they looking forward to lose some weight. Stomach Fat Burn Burn Belly Fat I haven’t tried this but I am going to try this for sure. Melt Belly Fat Review: I have used parsely before […]
Mysql Tips #3: Drop and CONCAT
Drop Index One common mistake which is being made on dropping index is that we forget the index name and try to drop the column name. drop index departments_name_unique on departments; CONCAT() Incase if you want to join the fields SELECT DATE, expiry, CONCAT( user.b_fname, ” “, user.b_lname ) FROM user Joins Different types of […]
Mysql Tips #2 : Using Group
Using group in MySQL: Group by is being used to group field into a single row to perform count, sum avg etc. SELECT * FROM `test_results` WHERE parent_code =11 GROUP BY username Using Group by with MAX SELECT MAX( points ) , username FROM `test_results` WHERE parent_code =11 GROUP BY username Similar can be used […]
HTML Tips #1
Link to jump to specific part of page Simple anchor tag can be used to jump to specific part the page. <a id=”INSERT_YOUR_OBJECT_NAME_HERE”> <a href=”#INSERT_YOUR_OBJECT_NAME_HERE”>The object you want to link to.</a> We can do it with jquery also <a id=”tab_jumps”></a> <a href=”#tab_jumps” id=”tab_jump”></a> type=”text/javascript”> $(function(){ $(‘#Button’).click(function(){ window.location = $(‘#tab_jump’).attr(‘href’); }); }); Happy Coding!!!
jQuery Datepicker
Using jQuery Datepicker Simple method to link datepicker to input box $(‘.datepicker_open’).datepicker({}) This example shows where you want set minimum date from another date picker. For example from and to date and to date will be 14 days from the From date HTML <label for=”from”>Repay Date</label> <input type=”text” id=”repay” name=”repay” /> <label for=”to”>Transfer Date</label> <input […]
Mysql Tips #1: Change field order and insert
Change the field order Sometimes we want to change the field order without deleting and re-inserting. ALTER TABLE `table_name` MODIFY `column_you_want_to_move` DATATYPE AFTER `column` ALTER TABLE `investment_security` MODIFY `location` text AFTER `serial_number`; If you want to move it to the first place then: ALTER TABLE `investment_security` MODIFY `location` text FIRST; Insert from one table […]
CSS Tips #2
Hide section of html for print A simple tip to hide a section of html content when printing the page. Can also you a css file to define the print content @media print was introduced in CSS2 to support media types. When using the @media screen make sure not to include media type in stylesheet […]