innerHTmL problems. Not synchronous?

This commit is contained in:
2026-04-15 23:16:22 +02:00
parent ca6667ce31
commit 3602d9bb3a
2 changed files with 19 additions and 18 deletions

View File

@@ -274,7 +274,7 @@
(if (or (eq? ext 'html) (eq? ext 'htm))
(process-html context file-to-serve out)
(process-file context ext file-to-serve out))
(dbg-webview "output to output port had been done")
(dbg-webview "output to output port has been done")
))
(response/output
#:code 404

View File

@@ -111,25 +111,26 @@
(if (= js-type -1)
'unknown
(string->symbol (string-downcase js-type))))))
(let ((cl (cond
((eq? type 'text) wv-input/text%)
((eq? type 'date) wv-input/date%)
((eq? type 'time) wv-input/time%)
((eq? type 'datetime-local) wv-input/datetime%)
((eq? type 'range) wv-input/range%)
((eq? type 'number) wv-input/number%)
((eq? type 'checkbox) wv-input/check%)
((eq? type 'radio) wv-input/radio%)
((eq? type 'color) wv-input/color%)
((eq? type 'unknown) (begin
(err-webview "Element with id '~a' not found"
id)
wv-element%))
)
(let ((cl (cond
((eq? type 'text) wv-input/text%)
((eq? type 'date) wv-input/date%)
((eq? type 'time) wv-input/time%)
((eq? type 'datetime-local) wv-input/datetime%)
((eq? type 'range) wv-input/range%)
((eq? type 'number) wv-input/number%)
((eq? type 'checkbox) wv-input/check%)
((eq? type 'radio) wv-input/radio%)
((eq? type 'color) wv-input/color%)
((eq? type 'unknown) (begin
(err-webview "Element with id '~a' not found"
id)
wv-element%))
(else wv-element%)
)))
(set! elem (new cl [window this] [element-id id]))
(hash-set! element-hash id elem))
))
(set! elem (new cl [window this] [element-id id]))
(hash-set! element-hash id elem))
)
(displayln (format "element ~a: ~a" id elem))
elem
)