100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting Webdad deel 2

Rating
-
Sold
-
Pages
9
Uploaded on
08-06-2017
Written in
2015/2016

Vervolg op deel 1 (ik verkoop ze in een bundel, dus koop best de bundel voor €4)

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
June 8, 2017
Number of pages
9
Written in
2015/2016
Type
Summary

Subjects

Content preview

HS6: Events vervolg
Changing default behavior

,Enkele events
Load
Afgevuurd als een object geladen is
Vaak gebruikt om het script pas uit te voeren als de volledige pagina geladen is

Vb.
<head>
<script>
Window.onload = function() {

} // einde window.onload
</script>
</head>
Of: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onload
d

Blur
Event om bv bij het verlaten van een tekstveld een eventhandler op te roepen die de input
checkt
Wordt afgevuurd als element focus verliest
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onblur

Focus
Wordt afgevuurd als element focus krijgt
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onfocus

Gebruik geen html event handlers zoals in deze voorbeelden

Mousedown
Wordt afgevuurd als de gebruiker één van de knoppen van de muis ingedrukt houdt
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onmousedown

Mouseup
Wordt afgevuurd als de gebruiker één van de knoppen van de muis loslaat

Keydown
Afgevuurd als user toets induwt

Keyup
Afgevuurd als user toets loslaat
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onkeydown_onkeyup

, Keypress
Afgevuurd als user toets loslaat
Browserverschillen, test pijltjestoetsen, alt, shift in chrome en firefox
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onkeypress


HS7: jQuery
Inleiding
Wat is jQuery?

Lightweight open-source Javascript-library
Legt focus op taken zoals

- Manipuleren van elementen
- Werken via het DOM event model
- Moedigt unobstrusive JavaScript aan!

Voordelen van jQuery?

javascript jQuery
Verschillen tussen browsers Crossbrowser compability
(zelf fallbacks schrijven)
complexe DOM navigatie Simpele CSS-selectoren
Frequente taken vergen veel code Write less, do more
(loop om geselecteerde elementen te - Doorlopen van elementen
doorlopen, events, …) - Chaining statements
Write more, do less - Animatie
Heel veel plugins en extensies
Basisfilosofie




Wie gebruikt jQuery?
http://docs.jquery.com/Sites_Using_jQuery

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
evibulteel Arteveldehogeschool
Follow You need to be logged in order to follow users or courses
Sold
21
Member since
9 year
Number of followers
21
Documents
2
Last sold
5 year ago

4.0

1 reviews

5
0
4
1
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions