Recently had a case in hand to auto-fill a large multi-page form in a SPA for quick tests. This was a repetitive task so it made sense to have a script for it. The script had to be injected locally on my browser which then filled-in the form based on the type of fill that […]
jQuery/Javascript
Wait for stuff in javascript
This could be useful when on the browser we needed to wait for some stuff to happen or finish before I start processing a block of code. Here are some useful functions that can be quite handy Waiting for all ajax requests to finish (uses jquery). This uses the query $.active property to see the […]
jQuery DataTables – Async and Responsive
I have used jQuery Datatables in a few MVC projects with Bootstrap and find it pretty easy to integrate. It allows data to loaded via ajax and can be made responsive. It has inbuilt UI features for sorting, pagination and search features. Here is an easy implementation sample.
HttpHandler to handle image uploads at server
The following module is useful to handle image uploads at the server especially when not using the default upload controls. It can be affectively used for hanlding ajax image uploads. The following handler returns Html content(true or false) based on the result of the upload. public class Upload : IHttpHandler { public void ProcessRequest(HttpContext […]