Add Event Snippets


When a KeyboardEvent fires, you can test which key was pressed because that event contains information you can write logic against.

28 January, 2019   

Usually, when one event loads, it writes over any previous ones. Using this snippet, you can add several events to one page without any problems.

06 November, 2013   

Example shows how to handle window closing events. This is a very basic event handling when you are working on a UI Application.

Scribble an applet of intermediate complexity, used as an example in the introductory chapter. Click and scribble in the window.

22 February, 2011   

Simple usage: var xmlLoader:LoadXMLUtil = new LoadXMLUtil("pathtoxml.xml"); xmlLoader.addEventListener(Event.COMPLETE, onLoaderComplete); private function onLoaderComplete(event:Event):void{ trace("Loaded XML: "); trace(xmlLoader.xml); }

06 November, 2013   

This Java code example on how to hide a frame when closed

14 May, 2014   

Html Code example for hCalendar

15 July, 2013   

This code will be used to bind an xml file to gridview

19 January, 2013   

Word scramble game that was made in java by MountainDew

JavaScript Code example to protect Your Web Page Content

10 April, 2012   

Protect your web page content with JavaScript code

04 July, 2011   

Animation with threads by John E. Grayson

30 January, 2013   

JQueryUI Search Auto complete Jump Menu with data from remote URL

29 June, 2011   

There are times when you need to access the stage property before onCreationComplete. Here are two ways to do it.

This snippet shows how to add treenode's to a treeview control. It also shows how to add sub nodes.

As the most important building block of any Delphi application, the TForm object is most of the times used as is. Delphi's TForm object provides enough properties and events to help you do (and control) whatever needed with it. Sometimes you'll find out that a few events or properties are missing... Try creating a simple form application. Now...

26 November, 2015   

Show the currently active processes.

Create in dbgrid one column and insert the caption "RecNo" or other in title property. In dbgrid onDrawColumnCell event insert the following code:

30 January, 2013   

jQuery code example for animated scroll

13 August, 2011   

Although there really isn't any foolproof way to protect your web page content, this JavaScript will discourage the more novice Internet users from copying your content. An alert box will appear displaying your copyright information when the right mouse button is clicked. However, this script will not completely protect your content from more...