Moodle JavaScript Cookbook.
Over 50 recipes for making your Moodle system more dynamic and responsive with JavaScript.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2011.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Moodle JavaScript Cookbook; Moodle JavaScript Cookbook; Credits; About the Author; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why Subscribe?; Free Access for Packt account holders; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Combining Moodle and JavaScript; Introduction; Creating a new Moodle PHP page; Getting ready; How to do it ... ; How it works ... ; Loading a JavaScript file; Getting ready.
- How to do it ... How it works ... ; Loading a JavaScript file in ; Getting ready; How to do it ... ; How it works ... ; Generating a JavaScript function call from PHP; Getting ready; How to do it ... ; How it works ... ; Passing variables from PHP to JavaScript; Getting ready; How to do it ... ; How it works ... ; Ensuring compliance with XHTML Strict; Getting ready; How to do it ... ; How it works ... ; Retrieving language strings from Moodle; Getting ready; How to do it ... ; How it works ... ; 2. Moodle and Yahoo! User Interface Library (YUI); Introduction; Initializing the YUI 3 library; Getting ready.
- How to do it ... How it works ... ; Loading additional YUI modules; How to do it ... ; Loading YUI 2 modules from YUI 3; Getting ready; How to do it ... ; How it works ... ; Attaching basic event handlers; Getting ready; How to do it ... ; How it works ... ; Attaching advanced DOM event handlers; Getting ready; How to do it ... ; How it works ... ; Implementing event delegation; Getting ready; How to do it ... ; How it works ... ; Debugging with the YUI console; Getting ready; How to do it ... ; How it works ... ; 3. Moodle Forms Validation; Introduction; Adding a required field; Getting ready; How to do it ...
- How it works ... Adding a field with a maximum length; Getting ready; How to do it ... ; How it works ... ; Adding a field with a minimum length; Getting ready; How to do it ... ; How it works ... ; Adding a field length within in a specified range; Getting ready; How to do it ... ; How it works ... ; Adding a valid e-mail address field; Getting ready; How to do it ... ; How it works ... ; Adding custom validation with a Regular Expression; Getting ready; How to do it ... ; How it works ... ; Adding a field that accepts only alphabetic characters; Getting ready; How to do it ... ; How it works ...
- Adding a field that accepts only alphanumeric charactersGetting ready; How to do it ... ; How it works ... ; Adding a field that accepts only numeric characters; Getting ready; How to do it ... ; How it works ... ; Rejecting punctuation characters; Getting ready; How to do it ... ; How it works ... ; Rejecting input without a leading zero; Getting ready; How to do it ... ; How it works ... ; Comparing with another field; Getting ready; How to do it ... ; How it works ... ; Adding a custom JavaScript validation function callback; Getting ready; How to do it ... ; How it works ... ; 4. Manipulating Data with YUI 3.