Posted In: Java Script

JS: Finding Number Of Working Days between 2 dates

Leave tracking application often required to calculate number of days between the range of leave dates. To calucalte the actual leave days we exclude weekends and any holidays comming between the date range. Following code take care of both weekends and Public Holidays — <script> var monthNames = {jan:0,feb:1,mar:2,apr:3,may:4,jun:5, jul:6,aug:7,sep:8,oct:9,nov:10,dec:11}; // List of Holiday (Exclude […]

Read More

Tags: Tags:

by , on January 3rd, 2019

Posted In: Bootstrap

Bootstrap 3 – Modal

How to open/close modal with javascript How to disable click outside of modal area to close modal How to remove grey area outside Modal window How to pass data to a modal Attach function to modal close event Modal dialog HTML full example

Read More

Tags: Tags:

by , on September 21st, 2017

Posted In: Java Script, jQuery

jQuery – Add dynamic rows in a table and read input values

Find all input of td inside a TR in jquery Dynamic rows example Table HTML <table id=”lwfsKvTable” class=”table table-striped table-bordered” style=”border-collapse: separate; border-spacing: 1em;” width=”100%”> <thead> <tr> <th>Key</th> <th>Value</th> </tr> </thead> </table> Code to add new row var kvtrCnt = 0; function createKvsHtmlRow() { var newRow = $(“<tr>”); var cols = “”; cols += ‘<td […]

Read More

Tags:

by , on September 9th, 2017

Posted In: Java Script, jQuery

How to make html files in separate modules using jQuery

Use Case – Your application has multiple modules like Customer, Payment and Email. You want to build an UI for all these modules. One approach is to make a single large HTML files and load it or you could make separate HTML file for each module and load it one by one. This is better […]

Read More

Tags:

by , on April 1st, 2017

Posted In: File Upload, Java Script, Spring, Spring Boot

Example – Spring Boot file upload AJAX – Complexity level 2

    Using Spring Boot + Dropzone Example – Spring Boot file upload AJAX – Dropzone     Using Spring Boot + Fineuploader Example – Spring Boot file upload AJAX – Fine Uploader     Using Spring Boot + Plupload Example – Spring Boot file upload AJAX – Plupload     Using Spring Boot + […]

Read More

Tags: Tags: ,

by , on February 10th, 2017

Posted In: File Upload, Java Script, Spring, Spring Boot

Example – Spring Boot file upload AJAX – jQuery Filer

  1. Using jQueryFiler JS   2. Spring Boot Upload Controller  

Read More

Tags: Tags: ,

by , on February 10th, 2017

Posted In: File Upload, Java Script, Spring, Spring Boot

Example – Spring Boot file upload AJAX – Plupload

1. Using Plupload JS   2. Spring Boot Upload Controller  

Read More

Tags: Tags: ,

by , on February 10th, 2017

Posted In: File Upload, Java Script, Spring, Spring Boot

Example – Spring Boot file upload AJAX – jQuery File Upload

  1. Using jQuery File Upload JS     2. Spring Boot Upload Controller  

Read More

Tags: Tags: ,

by , on February 10th, 2017

Posted In: File Upload, Java Script, Spring, Spring Boot

Example – Spring Boot file upload AJAX – Fine Uploader

  1. Using FINEUPLOADER JS   Fine uploader also provides facility to delete uploaded file. I have implemented @RequestMapping(value = “/upload/{qquuid}”, method = { RequestMethod.DELETE }) to support delete 2. Spring Boot Upload Controller  

Read More

Tags: Tags: ,

by , on February 10th, 2017

Posted In: File Upload, Java Script, Spring, Spring Boot

Example – Spring Boot file upload AJAX – Dropzone

    1. Using DROPZONE JS     2. Spring Boot Upload Controller  

Read More

Tags: Tags: ,

by , on February 10th, 2017