add jquery to tut 29

This commit is contained in:
David Botton 2022-02-16 23:04:27 -05:00
parent 218fb14a53
commit 4922a69e9e
3 changed files with 5 additions and 3 deletions

View file

@ -235,7 +235,7 @@ CLOG Tutorial Summary
- [26-tutorial.lisp](tutorial/26-tutorial.lisp) - A web page and form with CLOG WEB
- [27-tutorial.lisp](tutorial/27-tutorial.lisp) - Panel Box Layouts
- [28-tutorial/](tutorial/28-tutorial) - CLOG Builder Hello - A minimalist CLOG Builder project
- [29-tutorial.lisp](tutorial/29-tutorial.lisp) - Presentations - linking lisp objects to clog objects
- [29-tutorial.lisp](tutorial/29-tutorial.lisp) - Presentations (and jQuery) - linking lisp objects to clog objects
Demo Summary

View file

@ -1,4 +1,4 @@
;; Demonstrate CLOG presentations
;; Demonstrate CLOG-presentations and CLOG-jQuery
;; links established between CLOG objects and Lisp objects
(defpackage #:clog-tut-29
@ -49,6 +49,8 @@
(lambda (obj)
(declare (ignore obj))
(setf (value i2) (my-slot lisp-obj))))
;; Use jQuery to set all inputs to have a background color
(setf (background-color (create-jquery body "input[type=text]")) :beige)
;; This updates an element on the page by just changing the value of the linked
;; slot and my-count can be adjusted mid loop from web page
(loop

View file

@ -54,4 +54,4 @@ Tutorial Summary
- 26-tutorial.lisp - A web page and form with CLOG WEB
- 27-tutorial.lisp - Panel Box Layouts
- 28-tutorial.lisp - CLOG Builder Hello - A minimalist CLOG Builder project
- 29-tutorial.lisp - Presentations - linking lisp objects to clog objects
- 29-tutorial.lisp - Presentations (and jQuery) - linking lisp objects to clog objects