FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Java error when i try too use Formatting tools
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Java error when i try too use Formatting tools [message #1423] Sat, 13 April 2002 16:04 Go to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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....

Re: Java error when i try too use Formatting tools [message #1424 is a reply to message #1423] Sat, 13 April 2002 16:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
which version of the forum you are running?

FUDforum Core Developer
Re: Java error when i try too use Formatting tools [message #1425 is a reply to message #1424] Sat, 13 April 2002 16:46 Go to previous messageGo to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
im using 1.2.4 version the newest i think...
Re: Java error when i try too use Formatting tools [message #1426 is a reply to message #1425] Sat, 13 April 2002 16:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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


FUDforum Core Developer
Re: Java error when i try too use Formatting tools [message #1427 is a reply to message #1423] Sat, 13 April 2002 16:56 Go to previous messageGo to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
yes the java work fine for me also on this forum but i cant get it to work with my forum

http://194.236.118.56/ima_forum

try for you self..
test to format the text in a message with the formatting tool

you can login with this user

test
123456

my internet version is 6.0.2600.0000

Re: Java error when i try too use Formatting tools [message #1428 is a reply to message #1427] Sat, 13 April 2002 17:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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(at)brev(dot)ath(dot)cx"><code>john(at)brev(dot)ath(dot)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.


FUDforum Core Developer
icon14.gif  Re: Java error when i try too use Formatting tools [message #1429 is a reply to message #1428] Sat, 13 April 2002 17:04 Go to previous messageGo to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Ok thx man im looking into it now... thx for the help..
Re: Java error when i try too use Formatting tools [message #1430 is a reply to message #1423] Sat, 13 April 2002 19:52 Go to previous messageGo to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 [message #1431 is a reply to message #1423] Sat, 13 April 2002 20:02 Go to previous messageGo to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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(at)brev(dot)ath(dot)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 [message #1432 is a reply to message #1431] Sat, 13 April 2002 20:29 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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(at)brev(dot)ath(dot)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.


FUDforum Core Developer
Re: Java error when i try too use Formatting tools [message #1433 is a reply to message #1423] Sat, 13 April 2002 20:37 Go to previous messageGo to next message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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(at)prohost(dot)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://', '%s', '');
}

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 [message #1437 is a reply to message #1433] Sun, 14 April 2002 11:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
.js is a standard JavaScript extension, hardly anything special I dunno why IIS is going crazy Razz

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.


FUDforum Core Developer
Re: Java error when i try too use Formatting tools [message #1452 is a reply to message #1423] Mon, 15 April 2002 13:00 Go to previous message
ima_cryzader is currently offline  ima_cryzader   Sweden
Messages: 11
Registered: April 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
ok thx... for the help it works now after i renamed the file...

You are fast answer on problems on the forum... thats realy good service...


thx again for the help Laughing
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: SQL Post-Installation Problems
Next Topic: Step 1 Problem Revisited
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jun 12 20:56:52 EDT 2024

Total time taken to generate the page: 0.04133 seconds