Sunday, January 16, 2011
Wednesday, January 5, 2011
Object Oriented Javascript
Object Constructor
Creating Objects
References:
http://www.javascriptkit.com/javatutors/oopjs.shtml
function Cat(name) { this.name = name; this.talk = function() { alert( this.name + " say meeow!" ) } }
Creating Objects
- using constructor of defined object
myCat = new Cat("Kuting");
- using new Object()
person = new Object() person.name = "Bel" person.run = function() { this.state = "running" alert( this.name + " is running!" ) }
- using literal notation
person = { name : "Bel", siblings : ["Ana", "Marie"], run : function(){this.state = "running"; alert( this.name + " is running!" )} };
Cat.prototype.changeName = function(name) { this.name = name; }
References:
http://www.javascriptkit.com/javatutors/oopjs.shtml
Sunday, January 2, 2011
Getting started with Ext JS
Ext JS is a client-side, JavaScript framework for building web applications.
Reference:
http://www.sencha.com/learn/Learn_About_the_Ext_JavaScript_Library
- Download most current Ext JS release
- http://www.sencha.com/products/js/download.php - Set the URL of s.gif
Ext.BLANK_IMAGE_URL = '/images/ext/resources/images/default/s.gif';
Reference:
http://www.sencha.com/learn/Learn_About_the_Ext_JavaScript_Library
Monday, December 6, 2010
Installing Eclipse Plugins
- Copy and Paste
- extract package
- copy the contents of the "features" into the "features" folder of eclipse and copy the contents of the "plugins" into the "plugins" folder of eclipse
- Using Update Manager (existing Eclipse software site)
- click Help->Install New Software...
- select the update site of you eclipse' version from the dropdown folder
- find the feature you want from the list and install
- Using Update Manager (new software site)
- click Help->Install New Software... and click on Available Software tab
- add the download site
- select the update/download site from the dropdown
- find the feature you want from the list and install
Drools - http://download.jboss.org/drools/release/5.5.0.Final/org.drools.updatesite/
Some update sites are dependent on the version of eclipse.
Ex. http://www.jboss.org/tools/download.html
- Using Extension - to separate your plugins from other users
- create an extension folder with eclipse folder, e.g. C:\extension\eclipse
- copy the features and plugins folder of the plugin inside the eclipse folder (for additional plugins, do the Copy and Paste method above)
- open Update Manager and Add Site
- in Add Site window, click Local and specify the location of the extension folder, e.g. C:\extension
- browse and check the plugin you want to install in the Available Software list and click Install
- Using Link
Sunday, December 5, 2010
Tuesday, November 30, 2010
Using FileZilla
- Open FileZilla
- Click File->Site Manager
- Enter host, leave the port blank
Server type: SFTP
Username: SID
Password: orangewins - Click Connect
Subscribe to:
Posts (Atom)