Simple Chat Application Using Jaggery Framework

In this blog post, it’s going to guide you through the steps which involve in creating a simple chat application using WSO2‘s Jaggery Framework.

What is Jaggery?

Jaggery is a framework, which offers a completely Javascript way to write all parts of Web applications and services as a way to minimize impedance mismatches across different layers of the Web application and API development experience while closing the gap between Web apps from Web services by allowing one to create both applications and APIs at the same time.

Functionality of the Chat Application

In this tutorial, it will only focus on providing these basic requirements for the Chat application.

  • Create a chat room with a unique id.
  • Join existing chat-room using it’s unique id.
  • Have multiple chat rooms opened in multiple tabs.
  • Kick off users from the chat room.

Continue reading Simple Chat Application Using Jaggery Framework

How to use ( set, get, delete ) cookies in JavaScript

In this post you can find to how to set, get (retrieve) and delete cookies using JavaScript. This might comes in handy when you want to securely  store small amount in the client side.

 

Working example : click here

 

 

Shuffle an array in javascript

This code snippet can be use to Shuffle an array in JavaScript.

working example : http://jsfiddle.net/grainier/J4BuD/

How to check whether an array is a sub array of another array in Javascript

Below code snippet can be used to find whether an array is a sub array of another array in JavaScript

Results :