Blog Archives

Customize form validation by using jQuery validation plugin

Capture

Sometime form validation is trouble thing for building front page, in this article briefing a method which allow us to customize the validation by adding ourselves’ rule.

Posted in HTML5, Javascript Tagged with: ,

Retrieve public page content from Facebook without user login

facebook-api1

Abstract Facebook upgraded it’s API, cause some issue on our social micro page in our company. The public page content can not be retrieved anymore without creating an application, and I have to spend one day to look through the

Posted in Javascript Tagged with: , ,

Draw Bezier and B-spline curve with HTML5 + Javascript

Draw Bezier and B-spline curve by HTML5 and Javascript

This is a online tool for drawing Bezier and B-spline curve. Main technologies used in this tool are HTML5, Javascript and Paper.js which one is a great framework that runs on top of the HTML5 Canvas.

Posted in CG, HTML5, Javascript Tagged with: , , ,

Create a jQuery plugin to make your web as a speaker

web-speech-api

I there anyway to make your web text content spoken?

There are a lot of APIs we can use, but it is not easy to choose a suitable one. I tried with google translate speech api (e.g:http://translate.google.com/translate_tts?ie=UTF-8&q=what+are+you+doing&tl=en-us), but there is a limitation that the length of sentence can not be longer than 100 characters for one time call. Anyway we can split our large content into array of sentences and every item is one sentence which shorter than 100 characters. Then loop the array to call google’s API, but another problem raises up, google will cancel our call because the frequency is too high.

Posted in Digital Multiple Media, Javascript Tagged with: ,

How to download the data from EasyUI grid into excel?

Picture

  EasyUI is a good jQuery plugin for web application user interface,  especially for showing data in grid format. Sometime, we need to add a download link under data grid table like above picture, so that user can easily download

Posted in Javascript Tagged with:

Gallery thumb fan spin effect with CSS and jQuery

Gallery thumb fan spin effect with CSS and jQuery

Use CSS animation and javascript we can create a fancy fan spin effect for showing gallery thumb items.

Posted in CSS3, Javascript Tagged with: , ,

XOR operator in javascript

logic

How to predicate every character  in a string is number (0-9)? normal way 1: validate by regular express

normal way 2: use parseInt() function

normal way 3: use isNaN() function

There are some other method also can

Posted in Javascript Tagged with:

How to make jQuery validation engine works well for select2()

How to make jQuery validation engine works well for select2()

When we use select2 to prettify selector element , the jQuery validation engine will do not work well for it. A lot of people have to do custom validation function to hand over it.

It’s very troublesome, is there any way to solve this problem?

Posted in Javascript Tagged with: , ,

Update on solar system

Solar System base on WebGL

Added control panel for seeking object and controlling track line show or hide.   http://wangweiqiang.net/lib/webgl/solarsystem.html

Posted in HTML5, Javascript Tagged with: ,

Featured projects base on three.js

carvisualizer

Never Seen The Sky URL: http://christmasexperiments.com/23/ It’s a very nice project based on three.js, the polar lights pulse by following music rhythm, and the camera fly over the earth surface in different angle of view. The broad starlit sky and mountain looks  very beautiful with

Posted in HTML5, Javascript Tagged with: , ,