Showing posts with label Dojo behaviour. Show all posts
Showing posts with label Dojo behaviour. Show all posts

Friday, 15 November 2013

Dojo behaviour



 Css class is "hideTitle" assign it to any dom element or any dojo element . And manipulate the code
 Even if you have 1000 div elements it will register the event

var myBehavior = {
    ".hideTitle" : {
        onclick: onPurchaseClick,
        onMouseOver: function(evt){
            event.target.title="";
        }
    }
};

dojo.behavior.add(myBehavior);
dojo.behavior.apply();

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...