for the XMLHttp part, pick apart my previous post you must, or visit my
XMLHttp tutorial you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
&amtwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encompasses ipt>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 o tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></spust, or visit my [url=http://forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on rt, pick apart my previous post you must, or visit my [url=http://forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the srt, pick apart my previous post you must, or visit my [url=http://forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbwtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="span1" onClick="swapIt('span1','span2','text1')" style="cursor:hand">Some Text Here</span>
<span id="span2" style="display:none"><input type="text" name="text1" id="text1" value="Some Text Here" onBlur="swapItBack('span2','span1',this.value)"></span>
</body>
&amtutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;>&previous post you must, or visit my [url=http://forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "block";
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</bment.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="span1" onClick="swapIt('span1','span2','text1')" style="cursor:hand">Some Text Here</span>
<span id="span2" style="display:none"><input type="text" name="text1" id="text1" value="Some Text Here" onBlur="swapItBack('span2','span1',this.value)"></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encompasses the textbox, then uses innerHTML to update the new value of the span.
*/
much easier to understand taht should be...r visit my
XMLHttp tutorial you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encompasses the textbox, then uses innerHTML to update the new value of the span.
*/
much easier to understand taht should be...e,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="span1" onClick="swapIt('span1','span2','text1')" style="cursor:hand">Some Text Here</span>
<span id="span2" style="display:none"><input type="text" name="text1" id="text1" value="Some Text Here" onBlur="swapItBack('span2','span1',this.value)"></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encompasses the textbox, then uses innerHTML to update the new value of the span.
*/
much easier to understand taht shoushould.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swa/forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encrt, pick apart my previous post you must, or visit my [url=http://forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="span1" onClick="swapIt('span1','span2','text1')" style="cursor:hand">Some Text Here</span>
<span id="span2" style="display:none"><input type="text" name="text1" id="text1" value="Some Text Here" onBlurl=http://forums.devnetwork.net/viewtopic.php?t=34665]XMLHttp tutorial[/url] you should.
ok, shorter example I will provide:
Code: Select all
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "e;none"e;;
document.getElementById(who).style.display = "e;block"e;;
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="e;span1"e; onClick="e;swapIt('span1','span2','text1')"e; style="e;cursor:hand"e;>Some Text Here</span>
<span id="e;span2"e; style="e;display:none"e;><input type="e;text"e; name="e;text1"e; id="e;text1"e; value="e;Some Text Here"e; onBlur="e;swapItBack('span2','span1',this.value)"e;></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encompasses the textbox, then uses innerHTML to update the new value of the span.
*/
much easier to u
<html>
<head>
<script>
function swapIt(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
selit = document.getElementById(why);
selit.select(0,selit.length);
}
function swapItBack(where,who,why){
document.getElementById(where).style.display = "none";
document.getElementById(who).style.display = "block";
document.getElementById(who).innerHTML = why;
}
</script>
</head>
<body>
<span id="span1" onClick="swapIt('span1','span2','text1')" style="cursor:hand">Some Text Here</span>
<span id="span2" style="display:none"><input type="text" name="text1" id="text1" value="Some Text Here" onBlur="swapItBack('span2','span1',this.value)"></span>
</body>
</html>
/*
how it works:
span1 on click swaps the visibility between the span and the textbox
selit selects all the text in the textbox
onBlur of textbox swaps visibility back to span1 and hides span2 which encompasses the textbox, then uses innerHTML to update the new value of the span.
*/
much easier to understand taht should be...