Category Archives: Jquery

Jquery filter multiple value contain in table

This function will get multiple value of search input split by blank and filter contain in table. All result matching will show and another will hide.

 

Getting Started with Gulp.js

Gulp is a command line task runner utilizing Node.js platform. It runs custom defined repetitious tasks and manages process automation.

  1. Install Node.js and Gulp.
  2. Create   and list dependencies (Gulp and plugins).
  3. Install NPM modules.
  4. Create  .
  5. Load plugin and create tasks.
  6. Run those tasks in the command line.

The goal is be to create an automated workflow for working with Sass and combile JS. We want to make tasks that will:

  • Process styles/main.scss to assets/main.css
  • Concatenate and minify scripts/*.js to assets/script.js

Continue reading Getting Started with Gulp.js

Auto add loading image when call ajax.

Add below code in your script

Add below code in document ready

Add below code in css

Download icon and copy into your forder. Here

DWR: Easy AJAX for JAVA

DWR is a RPC library which makes it easy to call Java functions from JavaScript and to call JavaScript functions from Java (a.k.a Reverse Ajax).

It has a large user-base, active mailing list and has been used in many projects.

DWR has a number of features like call batching, marshalling of virtually any data-structure between Java and Javascript (including binary file uploading and downloading), exception handling, advanced CSRF protection and deep integration with several Java server-side technologies like Spring and Guice.

The first diagram shows how DWR can alter the contents of a selection list as a result of some Javascript event.

Continue reading DWR: Easy AJAX for JAVA

Jquery: Overcome ajax processing

Sometimes we have situation that compile a function include ajax and that ajax ran last time, althought it’s declared at the top of jquery function.
So, have one way to resolve this situation is “async” attribute in ajax function