Home » Tag Archives: jQuery

Tag Archives: jQuery

How to replace jQuery with VueJS

In this post, we feature a comprehensive article on How to replace jQuery with VueJS. If you’re from the IT industry, then you might already know about all the hype that VueJS has gained lately. But, what you might not know is that you can replace JQuery with Vue. In simple words, you can incorporate Vue just like you incorporate ...

Read More »

jQuery Disable button after submit Example

In this article, we will look at how to disable the submit button after a form submit in jQuery. It will prevent the user from submitting the form multiple times. We also cater to the possibility that the form submit is invalid or fails validation and thus we would re enable the button in such case. We will use jQuery ...

Read More »

Spring with Rails’ jQuery UJS

I’ve always wanted to try to see if I could use Rails’ jQuery UJS in a Spring Boot project. The UJS in jquery-ujs stands for unobtrusive JavaScript. I really like how UJS wires event handlers to eligible DOM elements marked with HTML5 data-* attributes. I find myself wanting to see more of this approach being used in Spring Boot web ...

Read More »

Ajax File Upload with Servlet and Bootstrap

java-interview-questions-answers

Introduction In this tutorial, we will check how Ajax file upload works with Servlets. Also we will decorate our form with Bootstrap and ajaxify file upload through jQuery Ajax. Implementation The basic servlet implementation is the same. So the first thing we need to do is update our web.xml file and specify servlets for our application. web.xml <?xml version="1.0" encoding="UTF-8"?> ...

Read More »

Server side logging from browser side JavaScript code

Application logging is something we all do in our applications that get deployed on an application server, right? Using frameworks like Log4J or Logback seems like a no-brainer to most Java developers. But what about the code we’ve written that is running in those pesky browsers? I guess that, apart from the occasional console.log() statement used during debugging, we don’t ...

Read More »

How to implement a custom password strength indicator in JSF

Verifying password strength using JavaScript is a common task. In this post, I will show how to add a password strength indicator to an JSF based web application. The password component in PrimeFaces already has a feedback indicator of the password strength, but it has two major shortcomings: Feedback indicator is not responsive (fix width, not mobile friendly, etc.) Rules ...

Read More »

Spring MVC: Ajax & JQuery

spring-interview-questions-answers

Today I want to demonstrate how to integrate AJAX into a Spring MVC application. I’m going to use JQuery on a client side for sending of requests and receiving of responses. This tutorial will be based on one of my previous tutorials about Spring MVC and REST services. In this article you will read how to make a web-application more ...

Read More »