Saturday, June 9, 2012
Install SpringSource tool Suit
sudo passwd root (give pc pass and unix root pass)
sudo apt-get install zip
sudo apt-get update
cd to file location
sudo unzip jdk
cd usr
sudo cp -r jdk1.6.0_18 /usr/
sudo chmod -R 777 jdk
cd ..
gedit .bashrc
ant end
export JAVA_HOME = USR/JDK1.6.0_18
export PATH = $PATH:$JAVA_HOME/bin
check java version
restart pc
go file position
sh sprsource (install sts)
cd ~/spr
sudo unzip grails
cd sts
run sts
install extension
process 2
First get the following files and keep it somewhere in your HDD (download this or copy it from someone who has this)
1. grails-1.3.7.zip
2. groovy-binary-1.7.10.zip
3. springsource-tool-suite-2.9.1.RELEASE-e3.7.2-linux-gtk-installer.sh
Open terminal (shortcut key → Ctrl + Altr +T)
Type:
1. sudo passwd root (give pc pass and unix root pass)
2 .sudo apt-get install zip
3. sudo apt-get update
4. sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
5. sudo apt-get install openjdk-7-jdk
Go to the file location where you kept the files mentioned above. let’s assume files are in ( /home/soft/ ) location
Open terminal and type
cd soft
sh pringsource-tool-suite-2.9.1.RELEASE-e3.7.2-linux-gtk-installer.sh
This will open STS installer. Install STS, installation process is easy. There should not be any complication here
After installation type the following command on terminal
1. cp -r grails-1.3.7.zip ~/springsource
2. cd ~/springsource
3. sudo unzip grails-1.3.7.zip
4. cd sts-2.9.1.RELEASE/
This will run STS
click on the Extension on the bottom ( If you don’t see it click help → Dashboard )
Click on the checkbox of the following extension
1. Grails
2. Grails Support
3. Groovy Eclipse
4. Cloud Foundry Integration for Eclipse
Now click install. Here also installation process is very easy, just make sure all the checkbox are checked.
After Installation process is done. STS will restart.
Now click File → New → Grails Project
This will make a new grails project for you.
Thursday, May 10, 2012
JS action on change
1 | <input type="text" name="date" /> |
Say an input field with the name “date” had to be validated at runtime:
1 | document.getElementsByName("date")[0]. |
2 | addEventListener("change", validateDate, false); |
3 |
4 | function validateDate(){ |
5 | // Do something when the content of the 'input' element with the name 'date' is changed. |
6 | } |
Subscribe to:
Posts (Atom)