Skip to main content

Posts

Showing posts from May, 2012

Digital Clock Using Javascript

Digital Clock Using Javascript This tutorial focuses on the setTimeout function for javascript, using which we can set a interval to a span tag and make it like a working digital clock. You can choose any tag in the HTML and force to refresh it on a set interval on its own, without making the page load or heavy using ajax calls to the server, below is the complete HTML code for a Digital Clock using javascript. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>   <head>   <meta http-equiv="content-type" content="text/html; charset=windows-1250">   <title>Digital Clock | Javascript</title>   <script language="JavaScript" type="text/javascript">     function showtime() {       now=new Date();       hour=now.getHours();       min=now.getMinutes();       sec=now.getSeconds();          if (min<=9) { min="0"+min; }     if (sec<=9) { sec=&quo

Modal window with browser close event

Prompt a window at the time of logout You can download the complete Project from here We all come across scenarios where a modal window needs to be popped up at the event of logout, you can do a simple alert box, confirm box or stylish jquery plugins available on the internet. For this tutorial I am referring to a superb simple light weight jquery modal window by Eric Martin , I do not own this library, I have just implemented it and other add on utilities. Lets get started, so requirements: 1) User should see a light box modal window at the time of logout. 2) The pop up window should have a confirmation box stating yes or no. 3) Click No and window should remain intact. 4) Click yes, background operations, server calls, document write etc. If log out operation is not performed, user while navigating away from the current window should be prompted, like "do you want to navigate away from this window or stay on this window" . Catch: pressing f5 does not tri

MBA Material

We all do google, right, we learn from google, we should also give back to it. This post is again very simple, we search for presentations, data, thesis, case study and lot of things, for learning, information or may be last minute preparations for topic presentations that you might need to submit or need to refer to. So here is the key, simple post your requirement(for MBA stuff as of now, but top B School into which I am in) and I shall try to provide for free to public. Topics like Business Communications, IT Strategy, Operations Management, Marketing Management, Economics, Strategic Management, Statistics, HR, International Business, Organization Behavior etc... No Catch, just reply !! Stay Happy..Stay Cool !!