|
Re: Java error when i try too use Formatting tools |
Sun, 14 April 2002 11:41 |
|
.js is a standard JavaScript extension, hardly anything special I dunno why IIS is going crazy 
You can rename the file to .jps and then modify your header file to use lib.jsp instead of lib.js.
I never had to deal with IIS, so unfortunately I cannot tell you how to make it treat .js files properly.
|
|
Re: Java error when i try too use Formatting tools |
Sat, 13 April 2002 20:37 |
|
if i rename lib.js too lib.jsp ill see a bunch of code also..
is it someway that i can change lib.js to lib.jsp
or do you know how to register .js in IIS that would help me alot because a tried to register .js but i doesent work when i access the lib.js the browser would only save it to hardrive.... yea you know like a zip file...
this is what a see if a rename it to lib.jsp/************************************************************************** * * copyright : (C) 2001,2002 Advanced Internet Designs Inc. * email : forum@prohost.org * * $Id: lib.js,v 1.5 2002/03/01 20:14:27 hackie Exp $ *************************************************************************** * *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * *************************************************************************** /
JS_HELPOFF = false; /* indentify the browser */ DOM = (document.getElementById) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; OPERA = (navigator.userAgent.indexOf("Opera 5") > -1 || navigator.userAgent.indexOf("Opera/5") > -1 || navigator.userAgent.indexOf("Opera 6") > -1 || navigator.userAgent.indexOf("Opera/6") > -1) ? 1 : 0;
/* edit box stuff */ function insertTag(obj, stag, etag) {
if ( navigator.userAgent.indexOf("MSIE") > -1 && !OPERA ) { insertTagIE(obj, stag, etag); } else { insertTagNS(obj, stag, etag); } }
function insertTagNS(obj, stag, etag) { obj.value = obj.value+stag+etag; }
function insertTagIE(obj, stag, etag) { r=document.selection.createRange(); if( document.selection.type == 'Text' && (obj.value.indexOf(r.text) != -1) ) { a = r.text; r.text = stag+r.text+etag; if ( obj.value.indexOf(document.selection.createRange().text) == -1 ) { document.selection.createRange().text = a; } } else insertAtCaret(obj, stag+etag); }
function dialogTag(obj, qst, def, stag, etag) { var q; q = prompt(qst, def); if ( !q ) return; stag = stag.replace(/%s/i, q); insertTag(obj, stag, etag); }
function url_insert() { if ( check_selection() ) dialogTag(document.post_form.msg_body, 'Location:', 'http://', '', ''); else dialogTag(document.post_form.msg_body, 'Location:', 'http://', '%s', ''); }
function check_selection() { var rn; var sel;
if ( document.layers ) return 0; if ( navigator.userAgent.indexOf("MSIE") < 0 ) return 0;
r = document.selection.createRange();
if ( r.text.length && (document.post_form.msg_body.value.indexOf(r.text) != -1) ) { a = document.selection.createRange().text; rn = Math.random(); r.text = r.text + ' ' + rn; if ( document.post_form.msg_body.value.indexOf(rn) != -1 ) { sel = 1; } else { sel = 0; } document.selection.createRange().text = a; } return sel; }
function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); }
function insertAtCaret(textEl, text) { if (textEl.createTextRange && textEl.caretPos) { var caretPos = textEl.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; } else textEl.value = textEl.value + text; }
function email_insert() { if ( check_selection() ) { dialogTag(document.post_form.msg_body, 'Email:', '', '', ''); } else dialogTag(document.post_form.msg_body, 'Email:', '', '%s', ''); }
function image_insert() { dialogTag(document.post_form.msg_body, 'Image URL:', 'http://', ' ', ''); }
function insertParentTagIE(stag, etag) { r=window.opener.document.selection.createRange(); obj = window.opener.document.post_form.msg_body; if( window.opener.document.selection.type == 'Text' && (obj.value.indexOf(r.text) != -1) ) { a = r.text; r.text = stag+r.text+etag; if ( obj.value.indexOf(window.opener.document.selection.createRange().text) == -1 ) { window.opener.document.selection.createRange().text = a; } } else insertAtCaret(obj, stag+etag); }
function insertParentTagNS(stag, etag) { window.opener.document.post_form.msg_body.value = window.opener.document.post_form.msg_body.value + stag + etag; }
function insertParentTag(stag, etag) { if ( document.all ) insertParentTagIE(stag, etag); else insertParentTagNS(stag, etag); }
function window_open(url,winName,width,height) { xpos = (screen.width-width)/2; ypos = (screen.height-height)/2; options = "scrollbars=1,width="+width+",height="+height+",le ft="+xpos+",top="+ypos+"position:absolute"; window.open(url,winName,options); }
/* help layer stuff */ function moveLayer(layer,x,y) { if (DOM) { document.getElementById(layer).style.left = x; document.getElementById(layer).style.top = y; } else if (NS4) { document.layers[layer].left = x; document.layers[layer].top = y; } else { document.all[layer].style.pixelLeft = x; document.all[layer].style.pixelTop = y; } }
function layerVis(layer,on) { if (on) { if (DOM) { document.getElementById(layer).style.visibility = "visible"; } else if (NS4) { document.layers[layer].visibility = "show"; } else { document.all[layer].style.visibility = "visible"; } } else { if (DOM) { document.getElementById(layer).style.visibility = "hidden"; } else if (NS4) { document.layers[layer].visibility = "hide"; } else { document.all[layer].style.visibility = "hidden"; } } }
function showHelp() { var argv=showHelp.arguments; var argc=showHelp.arguments.length; if( JS_HELPOFF ) return; elName = argv[0]; if ( argc > 1 ) anc_name = argv[1]; else anc_name = argv[0]; hideHelpLayers(''); if( DOM ) { var a = document.getElementById(anc_name+'_anc'); var x = a.offsetWidth+a.offsetLeft; var y = a.offsetHeight+a.offsetTop; while( (a=a.offsetParent) ) { x += a.offsetLeft; y += a.offsetTop; } } else if( NS4 ) { var x = document[anc_name+'_anc'].x+document[anc_name+'_anc'].width; var y = document[anc_name+'_anc'].y+document[anc_name+'_anc'].height; } moveLayer('fhelp_'+elName+'_ly', x, y); layerVis('fhelp_'+elName+'_ly', true); }
function hideHelpLayers(evnt) { if( DOM ) { divObjs = document.getElementsByTagName('DIV'); for( i=0; i<divObjs.length; i++ ) { if( divObjs[i].id ) { var a = divObjs[i].id; if( a.match('^fhelp_.*_ly$') ) { layerVis(divObjs[i].id, false); } } } } else if( NS4 ) { for( i=0; i<document.layers.length; i++ ) { layerVis(document.layers[i].id, false); } } }
function help_off(S,RND) { document.HELPOFF.src = 'ttips.php?S='+S+'&'+RND; hideHelpLayers(''); JS_HELPOFF = true; }
if( NS4 ) { document.captureEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP); document.onmousedown = hideHelpLayers; } else { document.onclick = hideHelpLayers; }
|
|
Re: Java error when i try too use Formatting tools |
Sat, 13 April 2002 20:29 |
|
ima_cryzader wrote on Sat, 13 April 2002 8:02 PM | you said that you get this error trying to access lib.js
500 Server Error The server encountered an error and was unable to complete your request. Message: CGI output from E:/WWWROOT/ROOT_IMA_FORUM/lib.js contained no blank line separating header and data (most likely a broken CGI program)
Please contact the server administrator at john@brev.ath.cxand inform them of the time the error occured, plus anything you know of that may have caused the error.
but what would happend if it worked what you see then????
|
I would have seen the contents of the file, which is bunch of JavaScript code.
|
|
Re: Java error when i try too use Formatting tools |
Sat, 13 April 2002 20:02 |
|
you said that you get this error trying to access lib.js
500 Server Error The server encountered an error and was unable to complete your request. Message: CGI output from E:/WWWROOT/ROOT_IMA_FORUM/lib.js contained no blank line separating header and data (most likely a broken CGI program)
Please contact the server administrator at john@brev.ath.cxand inform them of the time the error occured, plus anything you know of that may have caused the error.
but what would happend if it worked what you see then????
|
|
Re: Java error when i try too use Formatting tools |
Sat, 13 April 2002 19:52 |
|
hi again i tried do fix this problem but i couldnt register .js in my webservern but a renamed lib.js to lib.jsp after that i can open the file in my browser... but i need to know where a change lib.js too lib.jsp... in the code...
|
|
|
Re: Java error when i try too use Formatting tools |
Sat, 13 April 2002 17:01 |
|
I think I found your problem.
I get this error when trying to access lib.js
<html><head><title>500 Server Error</title></head> <body bgcolor="White"><h2>500 Server Error</h2> The server encountered an error and was unable to complete your request.<p> Message: <code>CGI output from E:/WWWROOT/ROOT_IMA_FORUM/lib.js contained no blank line separating header and data (most likely a broken CGI program)</code><p> Please contact the server administrator at <a HREF="mailto:john@brev.ath.cx"><code>john@brev.ath.cx< ;/code></a> and inform them of the time the error occured, plus anything you know of that may have caused the error.<p> </body></html>
Since JavaScript file where all the forum's JavaScript functions are located cannot be accessed you're getting errors when trying to use JavaScript shortcuts.
Looks like a server config prob.
|
|
|
Re: Java error when i try too use Formatting tools |
Sat, 13 April 2002 16:50 |
|
ima_cryzader wrote on Sat, 13 April 2002 4:46 PM | im using 1.2.4 version the newest i think...
|
Hmmm I've just tried using IE 6.0 on this very forum and all the Javascript worked flawlesly.
Can you try using JavaScript buttons that don't work on your forum on this forum and see if you still get errors.
If you do, please give me the exact version of your IE.
Thanks
|
|
|
|
Java error when i try too use Formatting tools |
Sat, 13 April 2002 16:04 |
|
i installed FUD forum on a Win2k machine everything works fine but i cant use the formatting tools when i press for exampel "insert image" nothing happens.. and a got a java error down in the left corner in my browser im using IE 6.0 everything..
i tried the same thing on your forum and it works fine with my browser... Have to be something with my installation or something
plz help working on this problem for days now....
|
|