From 0adaeb5e805b8bc5bec071b7f0520d80d452203b Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Sun, 20 Nov 2011 23:17:01 -0500 Subject: [PATCH] fixing the docs on update-view-attr (Thanks to Jason Fedor). Adding paragraph about cs019-upload and appcache files. --- scribblings/cs019.scrbl | 14 +++++++++++++- scribblings/manual.scrbl | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/scribblings/cs019.scrbl b/scribblings/cs019.scrbl index 56445f7..7fd4f4f 100644 --- a/scribblings/cs019.scrbl +++ b/scribblings/cs019.scrbl @@ -147,6 +147,18 @@ support}. +@subsection{Using the appcache} + +The applications generated with Whalesong are intended to work even +when you're not connected to a network. When uploading your app with +the @tt{cs019-upload} script, don't forget to upload the +@filepath{appcache} file along with the other files. Once you visit +the application's page on your phone, the application files will be +cached locally. Bookmark the page, turn off Wi-Fi, and revisit the +page again: the application should continue to work. + + + @subsection{Tick tock} @@ -610,7 +622,7 @@ Get the attribute @racket[name] at the focus. } @defproc[(update-view-attr [v view] [name String] [value String]) view]{ -Update the attribute @racket[n] with the value @racket[v] at the focus. +Update the attribute @racket[name] with the value @racket[value] at the focus. } diff --git a/scribblings/manual.scrbl b/scribblings/manual.scrbl index 15a68f1..643eb54 100644 --- a/scribblings/manual.scrbl +++ b/scribblings/manual.scrbl @@ -885,7 +885,7 @@ Get the attribute @racket[name] at the focus. } @defproc[(update-view-attr [v view] [name String] [value String]) view]{ -Update the attribute @racket[n] with the value @racket[v] at the focus. +Update the attribute @racket[name] with the value @racket[value] at the focus. } @defproc[(view-css [v view] [name String]) view]{