[INCLUDE TH/speedbar.blogme] [SETFAVICON dednat4/dednat4-icon.png] [SETFAVICON IMAGES/forthsun.png] [# (defun c () (interactive) (find-blogme3-sh0-if "javascript")) (defun cc () (interactive) (c)(find-sh0 "cp -v ~/TH/L/javascript.html /var/www/")) (defun u () (interactive) (find-blogme-upload-links "javascript")) ;; http://angg.twu.net/javascript.html ;; file:///home/edrx/TH/L/javascript.html ;; http://localhost/javascript.html #] [lua: LR = R def [[ JSBE' 1Q body PREBOXBLOGME(htmlizelines(body))..JS(body) ]] ] [htmlize [J Links on trying to learn JavaScript] [BE' Links pra oficina de JavaScript do PC: http://js.stamsoft.com.br/ http://js.stamsoft.com.br/0.html <- meu ;; (find-file "/ftp:js\\@stamsoft.com.br@stamsoft.com.br:") (code-c-d "PC" "/ftp:js\\@stamsoft.com.br@stamsoft.com.br:") ;; (find-PCfile "") ;; (find-PCfile "hello.txt") ;; (find-PCfile "0.html") ;; http://www.stamsoft.com.br/ http://js.stamsoft.com.br/hello.txt ] [JSBE' function docopy (df) { df.output.value = df.input.value; } function doeval (df) { df.output.value = eval(df.input.value); } myset = function (str) { document.form2.input.value = str; } myset0 = function () { myset("Hello"); } myfetch = function (page, f) { var req = get_XmlHttp(); req.open("GET", page); req.send(null); req.onreadystatechange = function() { if (req.readyState == 4) { f(req.responseText); } } } function copyFile(serverPage, tagID) { // var request = get_XmlHttp(); var request = new XMLHttpRequest(); request.open("GET", serverPage); //Abre o arquivo request.send(null); request.onreadystatechange = function() { if (request.readyState == 4) { // document.getElementById(tagID).innerHTML = request.responseText; document.form2.input.value = request.responseText; } } } function foo () { copyFile('.irbrc.html', 'conteudo') } ] [P [TEXTAREAEVALRUN form1 60 6 4 1 + 2 + 3 + 4]] [P [TEXTAREAEVAL form2 40 6 4 1 + 2 + 3 + 4 + 5]] [# [P Try it:] [JS function docopy (df) { df.output.value = df.input.value; } function doeval (df) { df.output.value = eval(df.input.value); } ] [P [TEXTAREAEVALRUN form1 40 3 2 1 + 2 + 3 + 4]] [P [TEXTAREAEVAL form2 30 3 2 1 + 2 + 3 + 4 + 5]] [P The source code in blogme for the two pairs of boxes above is just the JS block below and the two P lines following it.] [BE' [# See: # (find-es "javascript" "textarea-eval") # (find-blogme3 "anggdefs.lua" "javascript") # (find-wget "http://angg.twu.net/TH/javascript.blogme") # http://angg.twu.net/TH/javascript.blogme ] [JS function docopy (df) { df.output.value = df.input.value; } function doeval (df) { df.output.value = eval(df.input.value); } ] [P [TEXTAREAEVALRUN form1 40 3 2 1 + 2 + 3 + 4]] [P [TEXTAREAEVAL form2 30 3 2 1 + 2 + 3 + 4 + 5]] ] #] [JS eltbyid = function (id) { return document.getElementById(id); } from_textarea = function (id) { return eltbyid(id).value; } from_pre = function (id) { return eltbyid(id).innerHTML; } to_textarea = function (id, txt) { eltbyid(id).innerHTML = txt; } to_pre = function (id, txt) { eltbyid(id).innerHTML = txt; } ]
blo blu
blo blu
[JREF to_textarea('beth','beeboo')]
[JREF to_textarea('beth',from_textarea('alan'))]
[JREF to_pre('carl','fooee')]
[JREF to_pre('carl',from_pre('danny'))]

ooo
 

] [# # Local Variables: # coding: raw-text-unix # modes: (fundamental-mode blogme-mode) # End: #]