SlideShare a Scribd company logo
+
Julie Iskander
Lecturer at ITI
MSc. Communication and Electronics
+
Script.aculo.us
 A UI library built upon Prototype Framework, developed by
Thomas Fuchs.
 Includes:
 scriptaculous.js
 builder.js
 effects.js
 dragdrop.js
 controls.js
 slider.js
 sound.js
+
Script.aculo.us
 <script src=“scriptaculous.js”></script>  adds all libraries
 <script src=“scriptaculous.js?load=effects,dragdrop”></script>
 adds only specified ones
+
+
Sites that use script.aculo.us
 http://www.nasa.gov/
 http://www.apple.com/
 http://www.gucci.com/us/home
 http://rubyonrails.org/
+
Animation Framework
+
Animation
 To create animations, you need:
 target to be animated
 starting and ending point
 A way to get from starting to ending point incrementally
 Effect
 is the modification, over time, of any aspect of an element.
+
Core Effects
 Effect.Morph:
 takes an element and some css properties and slowly change them
 new Effect.Morph(„box‟,{style:”left:50px; top:50px”, duration:1.0});
 The box is moved through one second from its location to top:50
and left:50
 $(„box‟).morph(……);
 Effect.Move:
 move an element to a certain x and y using absolute/relative
 new Element.Move(„element‟,{x:5 , y: 5 , mode:‟absolute‟ })
+
Core Effects
 Effect.Scale:
 change the size of the element by a given percentage
 new Effect.Scale(„box‟,150)
 can also receive an Options object
{
scaleContent:true,
scaleFrom:50,
scaleX:false,
scaleY:true
}
+
Core Effects
 Effect.ScrollTo
 scroll the browser to a specific element
 new Effect.ScrollTo(„‟)
+
Combination Effect
 a group of core effects that run in parallel to create complex
animation.
 Effect.Fade / Effect.Appear
 animate opacity of element
 Effect.BlindUp / Effect.BlindDown
 use blinds effect to show or cover element
 Effect.SlideUp / Effect.SlideDown
 use sliding effect to show or hide element.
 Element must be double wrapped in block elements
 <div id=“box”><div>BOX</div></div>
+
Effect Callbacks
 passed into options argument
 beforeStart, afterStart
 beforeUpdate, afterUpdate
 beforeFinish,afterFinish
+
Draggables, Droppables ,
Sortables
+
Draggable
 Anything that can be dragged around the page.
 Examples
 new Draggable(„element‟)
 new Draggable(„element‟, options)
 Options
 revert: true/false or function, if true move the element back to initial
place at end of drag
 snap: false, [x,y],function, the delta x and delta y that the element
can be dragged to.
 handle: element or class name of element that acts as drag
handler.
 More : http://madrobby.github.io/scriptaculous/draggable/
+
Draggable Callbacks
 onStart
 onDrag
 onEnd
+
Droppable
 Objects that manages all draggable elements.
 It listens for mouse-over events to determine when an element is being
dragged into it. Then negotiates with draggable to determine if they‟re
compatible.
 Not class, can‟t be instantiated.
 Droppables.add(„element‟,options);
 Options:
 accept: class name of elements that can be dropped.
 Callbacks
 onHover
 onDrop
 More here: http://madrobby.github.io/scriptaculous/droppables/
+
Sortable
 A common application of drag-and-drop, where elements move
relative to one another.
 Sortable.create(„element‟, options):
 Options
 tag: default „li‟, is the tag name of children elements that can be used
as draggables.
 More here: http://madrobby.github.io/scriptaculous/sortable/
+
Advanced Controls
+
AutoCompleter
 Gives the developer the control to suggest input to textbox.
 It is indeed a textbox + div with a ul inside it
 There are 2 types
 Autocompleter.Local
 new Autocompleter.Local(„textboxID',„div id',[array of strings to
use], options);
 Ajax.Autocompleter
 new Ajax.Autocompleter(„textboxID‟,‟divID‟, „url‟);
+
AutoCompleter.Local
<input type="text" name="pname" id="pname" size="30">
<div id="suggestions"></div>
new
Autocompleter.Local('pname','suggestions',['Ahmed','Alaa','Moha
mmed','Ahmaad','Zara','Mona'],{choices:2});
+
Slider
 Creates a slider control that can be used to drag a handle to a
specific spot vertically or horizontally.
 new Slider(„handle‟,‟track‟ options)
 handle: element used as handle
 track element used as track
+
Slider
 Options:
 axis: horizontal or vertical
 range: $R( , )  object range takes min value and max value
 values: []  array of acceptable values
 increment: 1;
 minimum
 maximum
+
Slider
 Functions:
 setValue(value)
 setDisabled()
 setEnabled()
 callbacks
 onSlide(value)
 onChange(value)
 More here: http://madrobby.github.io/scriptaculous/slider/
+
Control.Slider
#handle{
width: 50px;
height: 20px;
background-color: #ddd; }
<div id="track">
<div id="handle"></div>
</div>
new Control.Slider('handle','track')
Note that you must give width and height to handle to avoid
exceptions
+
References
 http://script.aculo.us/
 Practical Prototype and script.aculo.us, Andrew
Dupont , 2008

More Related Content

Viewers also liked

Прибавление к инфинитиву окончания -ing
Прибавление к инфинитиву окончания -ingПрибавление к инфинитиву окончания -ing
Прибавление к инфинитиву окончания -ing
nikit86
 
Alcoholismo en los Jóvenes
Alcoholismo en los JóvenesAlcoholismo en los Jóvenes
Alcoholismo en los Jóvenes
Edith34
 
Mingle spot project
Mingle spot projectMingle spot project
Mingle spot project
saikrishnabachuwar
 
Task d my future vacations
Task d my future vacationsTask d my future vacations
Task d my future vacations
Laura Perez
 
200w led retrofit kits
200w led retrofit kits200w led retrofit kits
200w led retrofit kits
ngt led
 
모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트
모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트
모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트
ghjdfsg
 
Stratigies for SME's Growth
Stratigies for SME's GrowthStratigies for SME's Growth
Stratigies for SME's Growth
Upkar Singh
 
Focus group
Focus groupFocus group
Focus group
Sohail Khan
 
在一個馬槽內(A)
在一個馬槽內(A)在一個馬槽內(A)
在一個馬槽內(A)
gaanchurch
 
KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,
KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,
KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,
Krishna Sujeer
 
Mamãe 05-11-13
Mamãe   05-11-13Mamãe   05-11-13
Mamãe 05-11-13
Walmir Farias Azevedo
 
Web page redesigned for DE Design
Web page redesigned for DE DesignWeb page redesigned for DE Design
Web page redesigned for DE Design
Soozy G. Miller
 
Mukesh Ambani awarded Othmer Gold Medal for Entrepreneurial Leadership
Mukesh Ambani awarded Othmer Gold Medal for Entrepreneurial LeadershipMukesh Ambani awarded Othmer Gold Medal for Entrepreneurial Leadership
Mukesh Ambani awarded Othmer Gold Medal for Entrepreneurial Leadership
Flame Of Truth
 
Familia orchidáceas (orchidaceae)
Familia orchidáceas (orchidaceae)Familia orchidáceas (orchidaceae)
Familia orchidáceas (orchidaceae)
Vanina Martinez
 
3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗
3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗
3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗Tongsamut vorasan
 

Viewers also liked (15)

Прибавление к инфинитиву окончания -ing
Прибавление к инфинитиву окончания -ingПрибавление к инфинитиву окончания -ing
Прибавление к инфинитиву окончания -ing
 
Alcoholismo en los Jóvenes
Alcoholismo en los JóvenesAlcoholismo en los Jóvenes
Alcoholismo en los Jóvenes
 
Mingle spot project
Mingle spot projectMingle spot project
Mingle spot project
 
Task d my future vacations
Task d my future vacationsTask d my future vacations
Task d my future vacations
 
200w led retrofit kits
200w led retrofit kits200w led retrofit kits
200w led retrofit kits
 
모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트
모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트
모바일카지노¸¸¸OPT。ASIA˛˛˛라이브카지노 싸이트
 
Stratigies for SME's Growth
Stratigies for SME's GrowthStratigies for SME's Growth
Stratigies for SME's Growth
 
Focus group
Focus groupFocus group
Focus group
 
在一個馬槽內(A)
在一個馬槽內(A)在一個馬槽內(A)
在一個馬槽內(A)
 
KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,
KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,
KRISHNA NAYAKSujeer B.E(IT), MS(QM) , PGDCA,ITIL PMP,
 
Mamãe 05-11-13
Mamãe   05-11-13Mamãe   05-11-13
Mamãe 05-11-13
 
Web page redesigned for DE Design
Web page redesigned for DE DesignWeb page redesigned for DE Design
Web page redesigned for DE Design
 
Mukesh Ambani awarded Othmer Gold Medal for Entrepreneurial Leadership
Mukesh Ambani awarded Othmer Gold Medal for Entrepreneurial LeadershipMukesh Ambani awarded Othmer Gold Medal for Entrepreneurial Leadership
Mukesh Ambani awarded Othmer Gold Medal for Entrepreneurial Leadership
 
Familia orchidáceas (orchidaceae)
Familia orchidáceas (orchidaceae)Familia orchidáceas (orchidaceae)
Familia orchidáceas (orchidaceae)
 
3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗
3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗
3 37คัณฐีพระธัมมปทัฏฐกถา+ยกศัพท์แปล+ภาค๗
 

Similar to Scriptaculous

The Theory Of The Dom
The Theory Of The DomThe Theory Of The Dom
The Theory Of The Dom
kaven yan
 
Jquery tutorial-beginners
Jquery tutorial-beginnersJquery tutorial-beginners
Jquery tutorial-beginners
Isfand yar Khan
 
The power of CSS pseudo-elements
The power of CSS pseudo-elementsThe power of CSS pseudo-elements
The power of CSS pseudo-elements
Geoffrey Croftє
 
A to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperA to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java Developer
Manoj Bhuva
 
jQuery in the [Aol.] Enterprise
jQuery in the [Aol.] EnterprisejQuery in the [Aol.] Enterprise
jQuery in the [Aol.] Enterprise
Dave Artz
 
JQUERY TUTORIALS
JQUERY TUTORIALSJQUERY TUTORIALS
JQUERY TUTORIALS
Moize Roxas
 
High Performance Ajax Applications 1197671494632682 2
High Performance Ajax Applications 1197671494632682 2High Performance Ajax Applications 1197671494632682 2
High Performance Ajax Applications 1197671494632682 2
Niti Chotkaew
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax Applications
Julien Lecomte
 
jQuery for web development
jQuery for web developmentjQuery for web development
jQuery for web development
iFour Institute - Sustainable Learning
 
J Query
J QueryJ Query
J Query
ravinxg
 
Hack U - YUI - 2012 IIT Kharagpur
Hack U - YUI - 2012 IIT KharagpurHack U - YUI - 2012 IIT Kharagpur
Hack U - YUI - 2012 IIT Kharagpur
Sumana Hariharan
 
Air Drag And Drop
Air Drag And DropAir Drag And Drop
Air Drag And Drop
michael.labriola
 
J query
J queryJ query
Art & music vs Google App Engine
Art & music vs Google App EngineArt & music vs Google App Engine
Art & music vs Google App Engine
thomas alisi
 
How to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabHow to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in Scilab
Scilab
 
Lhy tutorial gui(1)
Lhy tutorial gui(1)Lhy tutorial gui(1)
Lhy tutorial gui(1)
Brijesh Naik
 
eXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction TrainingeXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction Training
Hoat Le
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
GDSC UofT Mississauga
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD CombinationLotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Sean Burgess
 
React native
React nativeReact native

Similar to Scriptaculous (20)

The Theory Of The Dom
The Theory Of The DomThe Theory Of The Dom
The Theory Of The Dom
 
Jquery tutorial-beginners
Jquery tutorial-beginnersJquery tutorial-beginners
Jquery tutorial-beginners
 
The power of CSS pseudo-elements
The power of CSS pseudo-elementsThe power of CSS pseudo-elements
The power of CSS pseudo-elements
 
A to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperA to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java Developer
 
jQuery in the [Aol.] Enterprise
jQuery in the [Aol.] EnterprisejQuery in the [Aol.] Enterprise
jQuery in the [Aol.] Enterprise
 
JQUERY TUTORIALS
JQUERY TUTORIALSJQUERY TUTORIALS
JQUERY TUTORIALS
 
High Performance Ajax Applications 1197671494632682 2
High Performance Ajax Applications 1197671494632682 2High Performance Ajax Applications 1197671494632682 2
High Performance Ajax Applications 1197671494632682 2
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax Applications
 
jQuery for web development
jQuery for web developmentjQuery for web development
jQuery for web development
 
J Query
J QueryJ Query
J Query
 
Hack U - YUI - 2012 IIT Kharagpur
Hack U - YUI - 2012 IIT KharagpurHack U - YUI - 2012 IIT Kharagpur
Hack U - YUI - 2012 IIT Kharagpur
 
Air Drag And Drop
Air Drag And DropAir Drag And Drop
Air Drag And Drop
 
J query
J queryJ query
J query
 
Art & music vs Google App Engine
Art & music vs Google App EngineArt & music vs Google App Engine
Art & music vs Google App Engine
 
How to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in ScilabHow to develop a Graphical User Interface (GUI) in Scilab
How to develop a Graphical User Interface (GUI) in Scilab
 
Lhy tutorial gui(1)
Lhy tutorial gui(1)Lhy tutorial gui(1)
Lhy tutorial gui(1)
 
eXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction TrainingeXo SEA - JavaScript Introduction Training
eXo SEA - JavaScript Introduction Training
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD CombinationLotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
 
React native
React nativeReact native
React native
 

More from Julie Iskander

HTML 5
HTML 5HTML 5
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
Julie Iskander
 
C for Engineers
C for EngineersC for Engineers
C for Engineers
Julie Iskander
 
Design Pattern lecture 3
Design Pattern lecture 3Design Pattern lecture 3
Design Pattern lecture 3
Julie Iskander
 
Prototype Framework
Prototype FrameworkPrototype Framework
Prototype Framework
Julie Iskander
 
Design Pattern lecture 4
Design Pattern lecture 4Design Pattern lecture 4
Design Pattern lecture 4
Julie Iskander
 
Design Pattern lecture 2
Design Pattern lecture 2Design Pattern lecture 2
Design Pattern lecture 2
Julie Iskander
 
Design Pattern lecture 1
Design Pattern lecture 1Design Pattern lecture 1
Design Pattern lecture 1
Julie Iskander
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
Julie Iskander
 
jQuery
jQueryjQuery
ASP.NET Lecture 5
ASP.NET Lecture 5ASP.NET Lecture 5
ASP.NET Lecture 5
Julie Iskander
 
ASP.NET lecture 8
ASP.NET lecture 8ASP.NET lecture 8
ASP.NET lecture 8
Julie Iskander
 
ASP.NET Lecture 7
ASP.NET Lecture 7ASP.NET Lecture 7
ASP.NET Lecture 7
Julie Iskander
 
ASP.NET Lecture 6
ASP.NET Lecture 6ASP.NET Lecture 6
ASP.NET Lecture 6
Julie Iskander
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
Julie Iskander
 
ASP.NET Lecture 3
ASP.NET Lecture 3ASP.NET Lecture 3
ASP.NET Lecture 3
Julie Iskander
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
Julie Iskander
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
Julie Iskander
 
AJAX and JSON
AJAX and JSONAJAX and JSON
AJAX and JSON
Julie Iskander
 
Object Oriented JavaScript
Object Oriented JavaScriptObject Oriented JavaScript
Object Oriented JavaScript
Julie Iskander
 

More from Julie Iskander (20)

HTML 5
HTML 5HTML 5
HTML 5
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
C for Engineers
C for EngineersC for Engineers
C for Engineers
 
Design Pattern lecture 3
Design Pattern lecture 3Design Pattern lecture 3
Design Pattern lecture 3
 
Prototype Framework
Prototype FrameworkPrototype Framework
Prototype Framework
 
Design Pattern lecture 4
Design Pattern lecture 4Design Pattern lecture 4
Design Pattern lecture 4
 
Design Pattern lecture 2
Design Pattern lecture 2Design Pattern lecture 2
Design Pattern lecture 2
 
Design Pattern lecture 1
Design Pattern lecture 1Design Pattern lecture 1
Design Pattern lecture 1
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
jQuery
jQueryjQuery
jQuery
 
ASP.NET Lecture 5
ASP.NET Lecture 5ASP.NET Lecture 5
ASP.NET Lecture 5
 
ASP.NET lecture 8
ASP.NET lecture 8ASP.NET lecture 8
ASP.NET lecture 8
 
ASP.NET Lecture 7
ASP.NET Lecture 7ASP.NET Lecture 7
ASP.NET Lecture 7
 
ASP.NET Lecture 6
ASP.NET Lecture 6ASP.NET Lecture 6
ASP.NET Lecture 6
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
 
ASP.NET Lecture 3
ASP.NET Lecture 3ASP.NET Lecture 3
ASP.NET Lecture 3
 
ASP.NET Lecture 2
ASP.NET Lecture 2ASP.NET Lecture 2
ASP.NET Lecture 2
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
AJAX and JSON
AJAX and JSONAJAX and JSON
AJAX and JSON
 
Object Oriented JavaScript
Object Oriented JavaScriptObject Oriented JavaScript
Object Oriented JavaScript
 

Recently uploaded

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 

Recently uploaded (20)

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 

Scriptaculous

  • 1. + Julie Iskander Lecturer at ITI MSc. Communication and Electronics
  • 2. + Script.aculo.us  A UI library built upon Prototype Framework, developed by Thomas Fuchs.  Includes:  scriptaculous.js  builder.js  effects.js  dragdrop.js  controls.js  slider.js  sound.js
  • 3. + Script.aculo.us  <script src=“scriptaculous.js”></script>  adds all libraries  <script src=“scriptaculous.js?load=effects,dragdrop”></script>  adds only specified ones
  • 4. +
  • 5. + Sites that use script.aculo.us  http://www.nasa.gov/  http://www.apple.com/  http://www.gucci.com/us/home  http://rubyonrails.org/
  • 7. + Animation  To create animations, you need:  target to be animated  starting and ending point  A way to get from starting to ending point incrementally  Effect  is the modification, over time, of any aspect of an element.
  • 8. + Core Effects  Effect.Morph:  takes an element and some css properties and slowly change them  new Effect.Morph(„box‟,{style:”left:50px; top:50px”, duration:1.0});  The box is moved through one second from its location to top:50 and left:50  $(„box‟).morph(……);  Effect.Move:  move an element to a certain x and y using absolute/relative  new Element.Move(„element‟,{x:5 , y: 5 , mode:‟absolute‟ })
  • 9. + Core Effects  Effect.Scale:  change the size of the element by a given percentage  new Effect.Scale(„box‟,150)  can also receive an Options object { scaleContent:true, scaleFrom:50, scaleX:false, scaleY:true }
  • 10. + Core Effects  Effect.ScrollTo  scroll the browser to a specific element  new Effect.ScrollTo(„‟)
  • 11. + Combination Effect  a group of core effects that run in parallel to create complex animation.  Effect.Fade / Effect.Appear  animate opacity of element  Effect.BlindUp / Effect.BlindDown  use blinds effect to show or cover element  Effect.SlideUp / Effect.SlideDown  use sliding effect to show or hide element.  Element must be double wrapped in block elements  <div id=“box”><div>BOX</div></div>
  • 12. + Effect Callbacks  passed into options argument  beforeStart, afterStart  beforeUpdate, afterUpdate  beforeFinish,afterFinish
  • 14. + Draggable  Anything that can be dragged around the page.  Examples  new Draggable(„element‟)  new Draggable(„element‟, options)  Options  revert: true/false or function, if true move the element back to initial place at end of drag  snap: false, [x,y],function, the delta x and delta y that the element can be dragged to.  handle: element or class name of element that acts as drag handler.  More : http://madrobby.github.io/scriptaculous/draggable/
  • 16. + Droppable  Objects that manages all draggable elements.  It listens for mouse-over events to determine when an element is being dragged into it. Then negotiates with draggable to determine if they‟re compatible.  Not class, can‟t be instantiated.  Droppables.add(„element‟,options);  Options:  accept: class name of elements that can be dropped.  Callbacks  onHover  onDrop  More here: http://madrobby.github.io/scriptaculous/droppables/
  • 17. + Sortable  A common application of drag-and-drop, where elements move relative to one another.  Sortable.create(„element‟, options):  Options  tag: default „li‟, is the tag name of children elements that can be used as draggables.  More here: http://madrobby.github.io/scriptaculous/sortable/
  • 19. + AutoCompleter  Gives the developer the control to suggest input to textbox.  It is indeed a textbox + div with a ul inside it  There are 2 types  Autocompleter.Local  new Autocompleter.Local(„textboxID',„div id',[array of strings to use], options);  Ajax.Autocompleter  new Ajax.Autocompleter(„textboxID‟,‟divID‟, „url‟);
  • 20. + AutoCompleter.Local <input type="text" name="pname" id="pname" size="30"> <div id="suggestions"></div> new Autocompleter.Local('pname','suggestions',['Ahmed','Alaa','Moha mmed','Ahmaad','Zara','Mona'],{choices:2});
  • 21. + Slider  Creates a slider control that can be used to drag a handle to a specific spot vertically or horizontally.  new Slider(„handle‟,‟track‟ options)  handle: element used as handle  track element used as track
  • 22. + Slider  Options:  axis: horizontal or vertical  range: $R( , )  object range takes min value and max value  values: []  array of acceptable values  increment: 1;  minimum  maximum
  • 23. + Slider  Functions:  setValue(value)  setDisabled()  setEnabled()  callbacks  onSlide(value)  onChange(value)  More here: http://madrobby.github.io/scriptaculous/slider/
  • 24. + Control.Slider #handle{ width: 50px; height: 20px; background-color: #ddd; } <div id="track"> <div id="handle"></div> </div> new Control.Slider('handle','track') Note that you must give width and height to handle to avoid exceptions
  • 25. + References  http://script.aculo.us/  Practical Prototype and script.aculo.us, Andrew Dupont , 2008