| | |
Runtime Error Help PLEASE
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
A former instructor (process technology) has emailed me with a question concerning a runtime error he is receiving. I am not a programmer and provided him with code snippets for his WebCT environment.
He has emailed me and asked a question I cannot answer. He is receiving a runtime error for the following snippet that a ";" is missing. Can someone tell me where that semi-colon is supposed to go?
Thanks, Steve
snewsome@stx.rr.com
<HEAD>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
</HEAD>
<STYLE media="print">BODY {display:none}</STYLE>
<BODY ondragstart="return false" onselectstart="return false">
<script language="JavaScript">
var message="Function Disabled!";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) { if
(e.which==1||e.which==2||e.which==3) {(message);return false;}}} if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false") if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!-- ///////////////////////////////////////// //-->
<html><head>
<script language="JavaScript"><!--
function clp_clear() {
var content=window.clipboardData.getData("Text");
if (content==null) {
window.clipboardData.clearData();}
setTimeout("clp_clear();",1000);}
--></script></head>
<body onload='clp_clear()'>
</body></html>
He has emailed me and asked a question I cannot answer. He is receiving a runtime error for the following snippet that a ";" is missing. Can someone tell me where that semi-colon is supposed to go?
Thanks, Steve
snewsome@stx.rr.com
<HEAD>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
</HEAD>
<STYLE media="print">BODY {display:none}</STYLE>
<BODY ondragstart="return false" onselectstart="return false">
<script language="JavaScript">
var message="Function Disabled!";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) { if
(e.which==1||e.which==2||e.which==3) {(message);return false;}}} if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false") if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!-- ///////////////////////////////////////// //-->
<html><head>
<script language="JavaScript"><!--
function clp_clear() {
var content=window.clipboardData.getData("Text");
if (content==null) {
window.clipboardData.clearData();}
setTimeout("clp_clear();",1000);}
--></script></head>
<body onload='clp_clear()'>
</body></html>
I fixed all the obvious problems I found (there were several).
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
var message="Function Disabled!"; function clickIE() { if (document.all) { alert(message); return false; } } function clickNS(e) { if (document.layers||(document.getElementById&&!document.all)) { if (e.which==1||e.which==2||e.which==3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS; } else { document.onmouseup=clickNS; document.oncontextmenu=clickIE; } document.oncontextmenu=new Function("return false;"); function disableselect(e) { return false; } function reEnable() { return true; } document.onselectstart=new Function ("return false;"); if (window.sidebar){ document.onmousedown=disableselect; document.onclick=reEnable; }
![]() |
Similar Threads
- Runtime Error -21470024770 (8007007e) (Windows NT / 2000 / XP)
- Runtime Error 226 (Windows 95 / 98 / Me)
- runtime error#58 (Visual Basic 4 / 5 / 6)
- "The Sims" visual C++ runtime error, what shall i do? (Windows Software)
- Visual Runtime Error, Sound Problem, Disabled Norton and more! (Windows NT / 2000 / XP)
- Runtime Error 424 object required (was: Please Help!) (Visual Basic 4 / 5 / 6)
- Runtime error using Incredimail on XP (Windows NT / 2000 / XP)
- Runtime error ??!! (Windows 95 / 98 / Me)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Please help!! i am so desperate!
- Next Thread: Creative element selection with JavaScript
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column cookies createrange() css cursor dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select session shopping size software sql text textarea unicode w3c web webservice website window windowofwords windowsxp wysiwyg \n





