Join Joe Marini for an in-depth discussion in this video Using other DOM element functions, part of Prototype and script.aculo.us Essential Training.
- View Offline
- Exercise Files
Prototype provides a small set of miscellaneous methods for working with page elements…that don't fit well into the other categories.…And these are those methods.…Now I don't have an example file for this chapter because these are pretty simple.…In fact, in some of these cases, they are used internally and you might not…want to use them anyway.…But I include them for completeness and a couple of them actually are kind of useful.…The first one, the hasAttribute method, returns true if the element in question or…the element that you calling us on has an attribute with that name specified by…the attr argument pretty straightforward.…
The identify method is probably the most useful out of the bunch in here.…That method ensures that the element is called on has a unique ID in the web…page, because under XHTML rules all ID's have to be unique in a given page.…If the element already has an ID attribute, it's returned untouched.…Otherwise, this method is pretty cool.…It actually generates a unique ID for you in the form of anonymous_element_X,…
- Retrieving and manipulating web page elements
- Handling web page events and creating custom events
- Traversing the DOM
- Creating and handling AJAX requests
- Using script.aculo.us controls such as Autocompleters, Sliders, and Visual Effects
- Building complex page features like data filtering and image rotators
Skill Level Beginner
1. Overview of Prototype
Introducing Prototype4m 59s
2. Retrieving Page Content
4. Working with Collections
5. Using Prototype's DOM Features
6. Working with Events
7. Prototype and AJAX
8. script.aculo.us and Prototype UI
9. Putting It All Together
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.