Hi all,
I read about Cofee Script.But i get confused .
Rails Community tells to use Cofee Script.
Q 1. Can one tell me Advantage of Cofeescript.
Q 2. I wish to use Ajax but should i use Jquery and CofeeScript.
Thanks
Regards
Fahim Babar Patel
Hi all,
I read about Cofee Script.But i get confused .
Rails Community tells to use Cofee Script.
Q 1. Can one tell me Advantage of Cofeescript.
Q 2. I wish to use Ajax but should i use Jquery and CofeeScript.
Thanks
Regards
Fahim Babar Patel
fahim patel wrote in post #1082003:
Hi all,
I read about Cofee Script.But i get confused .
Rails Community tells to use Cofee Script. Q 1. Can one tell me Advantage of Cofeescript. Q 2. I wish to use Ajax but should i use Jquery and CofeeScript.
1. CoffeeScript is just a language that gets "compiled" into JavaScript, nothing more. 2. You can use jQuery/AJAX with or without CoffeeScript.
Use of CoffeeScript is completely optional. If you like the syntax and features of CoffeeScript then use CoffeeScript, if not then use JavaScript. The user's browser will only ever see JavaScript, given browsers don't know what CoffeeScript is.