SlideShare una empresa de Scribd logo
1 de 14
Prototype JS in Ruby On Rails Kıvanç Kantürk
Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is Prototype JS ,[object Object],[object Object],[object Object],[object Object]
Why Prototype JS ,[object Object],[object Object],[object Object],[object Object],[object Object]
Speed Comparison Between Frameworks
Problems ,[object Object],[object Object],[object Object]
General Methods ,[object Object],[object Object],[object Object],[object Object],var MyClass=  Class.create ({ initialize: function(args){functionA(){..}, functionB(){..} });
General Methods Cont’d ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
General Methods Cont’d ,[object Object],[object Object],[object Object],var divs =  $ ('myDiv','myOtherDiv'); for(i=0; i<divs.length; i++) { alert(divs[i].innerHTML); }
General Methods Cont’d ,[object Object],function getType(Worker){ return Try.these ( function() {return Worker.Id;}, function() {return Worker.Salary;) ); }
General Methods Cont’d ,[object Object],[object Object],<script> function f(){ var url = ‘ http:// localhost/20000/factory’ var params = ‘workerId=’ + workerId + ‘&salary=’ + s; var MyAjax = new  Ajax.Request (url, { method: ‘get’,  parameters: params, onC omplete: displayResult} ); } function displayResult(responseData){ if (responseData){  $(‘result’).value = responseData.responseText;} else{                $('result').value = &quot;Sunucuda bir hata oluştu&quot;;} } </script>
Ruby and Prototype JS
Ruby and Prototype JS Cont’d ,[object Object],[object Object]
Referances ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Más contenido relacionado

La actualidad más candente

JavaScript In Object Oriented Way
JavaScript In Object Oriented WayJavaScript In Object Oriented Way
JavaScript In Object Oriented WayBorey Lim
 
A Deeper look into Javascript Basics
A Deeper look into Javascript BasicsA Deeper look into Javascript Basics
A Deeper look into Javascript BasicsMindfire Solutions
 
JavaScript in Object-Oriented Way
JavaScript in Object-Oriented WayJavaScript in Object-Oriented Way
JavaScript in Object-Oriented WayChamnap Chhorn
 
Functions and Objects in JavaScript
Functions and Objects in JavaScript Functions and Objects in JavaScript
Functions and Objects in JavaScript Dhananjay Kumar
 
JavaScript - Chapter 6 - Basic Functions
 JavaScript - Chapter 6 - Basic Functions JavaScript - Chapter 6 - Basic Functions
JavaScript - Chapter 6 - Basic FunctionsWebStackAcademy
 
Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6Devang Garach
 
Javascript basics for automation testing
Javascript  basics for automation testingJavascript  basics for automation testing
Javascript basics for automation testingVikas Thange
 
JavaScript Literacy
JavaScript LiteracyJavaScript Literacy
JavaScript LiteracyDavid Jacobs
 
Introduction to Grails Framework
Introduction to Grails FrameworkIntroduction to Grails Framework
Introduction to Grails FrameworkPT.JUG
 
JavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJWORKS powered by Ordina
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptWalid Ashraf
 
Basic Javascript
Basic JavascriptBasic Javascript
Basic JavascriptBunlong Van
 

La actualidad más candente (20)

JavaScript In Object Oriented Way
JavaScript In Object Oriented WayJavaScript In Object Oriented Way
JavaScript In Object Oriented Way
 
Object Oriented Javascript
Object Oriented JavascriptObject Oriented Javascript
Object Oriented Javascript
 
A Deeper look into Javascript Basics
A Deeper look into Javascript BasicsA Deeper look into Javascript Basics
A Deeper look into Javascript Basics
 
JavaScript in Object-Oriented Way
JavaScript in Object-Oriented WayJavaScript in Object-Oriented Way
JavaScript in Object-Oriented Way
 
JavaScript Basics
JavaScript BasicsJavaScript Basics
JavaScript Basics
 
Functions and Objects in JavaScript
Functions and Objects in JavaScript Functions and Objects in JavaScript
Functions and Objects in JavaScript
 
Week3
Week3Week3
Week3
 
JavaScript OOP
JavaScript OOPJavaScript OOP
JavaScript OOP
 
JavaScript - Chapter 6 - Basic Functions
 JavaScript - Chapter 6 - Basic Functions JavaScript - Chapter 6 - Basic Functions
JavaScript - Chapter 6 - Basic Functions
 
Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6
 
Javascript basics for automation testing
Javascript  basics for automation testingJavascript  basics for automation testing
Javascript basics for automation testing
 
jQuery Fundamentals
jQuery FundamentalsjQuery Fundamentals
jQuery Fundamentals
 
JavaScript Literacy
JavaScript LiteracyJavaScript Literacy
JavaScript Literacy
 
Introduction to Grails Framework
Introduction to Grails FrameworkIntroduction to Grails Framework
Introduction to Grails Framework
 
JavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UXJavaScript Basics and Best Practices - CC FE & UX
JavaScript Basics and Best Practices - CC FE & UX
 
Lecture 5 javascript
Lecture 5 javascriptLecture 5 javascript
Lecture 5 javascript
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
 
J Query
J QueryJ Query
J Query
 
Basic Javascript
Basic JavascriptBasic Javascript
Basic Javascript
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 

Destacado

Presentacion It Novation Telecom V3
Presentacion It Novation Telecom V3Presentacion It Novation Telecom V3
Presentacion It Novation Telecom V3itnnovation
 
NPD Aftermarket Perspectives
NPD Aftermarket PerspectivesNPD Aftermarket Perspectives
NPD Aftermarket Perspectivesbuddhand
 
Kelly slide show ppt adjusted
Kelly slide show   ppt adjustedKelly slide show   ppt adjusted
Kelly slide show ppt adjustedjkellyverizonnet
 
แชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรม
แชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรมแชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรม
แชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรมIttichai Janthawong
 
ITNNOVATION Presentation Final With Text
ITNNOVATION Presentation Final   With TextITNNOVATION Presentation Final   With Text
ITNNOVATION Presentation Final With Textitnnovation
 
NPD Custom Research/Advanced Analytics
NPD Custom Research/Advanced AnalyticsNPD Custom Research/Advanced Analytics
NPD Custom Research/Advanced Analyticsbuddhand
 
Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)
Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)
Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)Kivanc Kanturk
 
How to write a formal email
How to write a formal emailHow to write a formal email
How to write a formal emailefanreeche
 

Destacado (11)

Presentacion It Novation Telecom V3
Presentacion It Novation Telecom V3Presentacion It Novation Telecom V3
Presentacion It Novation Telecom V3
 
Pkng02 real games 1 maniman teatro 5 slide
Pkng02 real games 1 maniman teatro 5 slidePkng02 real games 1 maniman teatro 5 slide
Pkng02 real games 1 maniman teatro 5 slide
 
NPD Aftermarket Perspectives
NPD Aftermarket PerspectivesNPD Aftermarket Perspectives
NPD Aftermarket Perspectives
 
Version Control
Version ControlVersion Control
Version Control
 
Kelly slide show ppt adjusted
Kelly slide show   ppt adjustedKelly slide show   ppt adjusted
Kelly slide show ppt adjusted
 
แชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรม
แชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรมแชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรม
แชร์เทคนิคสอนลูก เก่งเลข ด้วย 4 กิจกรรม
 
ITNNOVATION Presentation Final With Text
ITNNOVATION Presentation Final   With TextITNNOVATION Presentation Final   With Text
ITNNOVATION Presentation Final With Text
 
NPD Custom Research/Advanced Analytics
NPD Custom Research/Advanced AnalyticsNPD Custom Research/Advanced Analytics
NPD Custom Research/Advanced Analytics
 
Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)
Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)
Kivanc Kanturk Swe550 Fall2010 Capability Maturity Model Integration (Cmmi)
 
How to write a formal email
How to write a formal emailHow to write a formal email
How to write a formal email
 
Hb
HbHb
Hb
 

Similar a Prototype Js

Javascript first-class citizenery
Javascript first-class citizeneryJavascript first-class citizenery
Javascript first-class citizenerytoddbr
 
Smoothing Your Java with DSLs
Smoothing Your Java with DSLsSmoothing Your Java with DSLs
Smoothing Your Java with DSLsintelliyole
 
AJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdfAJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdfSreeVani74
 
Prototype Utility Methods(1)
Prototype Utility Methods(1)Prototype Utility Methods(1)
Prototype Utility Methods(1)mussawir20
 
JavaScript Growing Up
JavaScript Growing UpJavaScript Growing Up
JavaScript Growing UpDavid Padbury
 
Practical catalyst
Practical catalystPractical catalyst
Practical catalystdwm042
 
Ruby On Rails Intro
Ruby On Rails IntroRuby On Rails Intro
Ruby On Rails IntroSarah Allen
 
Javascript unit testing, yes we can e big
Javascript unit testing, yes we can   e bigJavascript unit testing, yes we can   e big
Javascript unit testing, yes we can e bigAndy Peterson
 
Agile web development Groovy Grails with Netbeans
Agile web development Groovy Grails with NetbeansAgile web development Groovy Grails with Netbeans
Agile web development Groovy Grails with NetbeansCarol McDonald
 
[@IndeedEng] Building Indeed Resume Search
[@IndeedEng] Building Indeed Resume Search[@IndeedEng] Building Indeed Resume Search
[@IndeedEng] Building Indeed Resume Searchindeedeng
 
HTML5 for the Silverlight Guy
HTML5 for the Silverlight GuyHTML5 for the Silverlight Guy
HTML5 for the Silverlight GuyDavid Padbury
 
Building Smart Workflows - Dan Diebolt
Building Smart Workflows - Dan DieboltBuilding Smart Workflows - Dan Diebolt
Building Smart Workflows - Dan DieboltQuickBase, Inc.
 
Google App Engine With Java And Groovy
Google App Engine With Java And GroovyGoogle App Engine With Java And Groovy
Google App Engine With Java And GroovyKen Kousen
 
J Query(04 12 2008) Foiaz
J Query(04 12 2008) FoiazJ Query(04 12 2008) Foiaz
J Query(04 12 2008) Foiaztestingphase
 

Similar a Prototype Js (20)

Javascript first-class citizenery
Javascript first-class citizeneryJavascript first-class citizenery
Javascript first-class citizenery
 
Smoothing Your Java with DSLs
Smoothing Your Java with DSLsSmoothing Your Java with DSLs
Smoothing Your Java with DSLs
 
Jquery 2
Jquery 2Jquery 2
Jquery 2
 
jQuery
jQueryjQuery
jQuery
 
AJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdfAJS UNIT-1 2021-converted.pdf
AJS UNIT-1 2021-converted.pdf
 
Prototype Utility Methods(1)
Prototype Utility Methods(1)Prototype Utility Methods(1)
Prototype Utility Methods(1)
 
JavaScript Growing Up
JavaScript Growing UpJavaScript Growing Up
JavaScript Growing Up
 
Practical catalyst
Practical catalystPractical catalyst
Practical catalyst
 
IOC + Javascript
IOC + JavascriptIOC + Javascript
IOC + Javascript
 
Ruby On Rails Intro
Ruby On Rails IntroRuby On Rails Intro
Ruby On Rails Intro
 
Quebec pdo
Quebec pdoQuebec pdo
Quebec pdo
 
Java scriptforjavadev part2a
Java scriptforjavadev part2aJava scriptforjavadev part2a
Java scriptforjavadev part2a
 
Javascript unit testing, yes we can e big
Javascript unit testing, yes we can   e bigJavascript unit testing, yes we can   e big
Javascript unit testing, yes we can e big
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Rails
 
Agile web development Groovy Grails with Netbeans
Agile web development Groovy Grails with NetbeansAgile web development Groovy Grails with Netbeans
Agile web development Groovy Grails with Netbeans
 
[@IndeedEng] Building Indeed Resume Search
[@IndeedEng] Building Indeed Resume Search[@IndeedEng] Building Indeed Resume Search
[@IndeedEng] Building Indeed Resume Search
 
HTML5 for the Silverlight Guy
HTML5 for the Silverlight GuyHTML5 for the Silverlight Guy
HTML5 for the Silverlight Guy
 
Building Smart Workflows - Dan Diebolt
Building Smart Workflows - Dan DieboltBuilding Smart Workflows - Dan Diebolt
Building Smart Workflows - Dan Diebolt
 
Google App Engine With Java And Groovy
Google App Engine With Java And GroovyGoogle App Engine With Java And Groovy
Google App Engine With Java And Groovy
 
J Query(04 12 2008) Foiaz
J Query(04 12 2008) FoiazJ Query(04 12 2008) Foiaz
J Query(04 12 2008) Foiaz
 

Prototype Js