|
Links on trying to learn JavaScript
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')
}
|
blo blu
blo blu
to_textarea('beth','beeboo')
to_textarea('beth',from_textarea('alan'))
to_pre('carl','fooee')
to_pre('carl',from_pre('danny'))
ooo
|