Gossamer Forum
Home : Products : Others : Fileman :

Error Message on HTML view

Quote Reply
Error Message on HTML view
Line 153
document.frm_main.pre_content.value is null or not an object.

It doesn't happen every time, but probably 80% that I open a file in HTML view (error message above). Any ideas on why? It shows the text and the rest works wonderfully ... I like it, but I need the HTML view to work to set up for non-tech person to edit a site in WYSIWYG. Thanks!
Quote Reply
Re: [JimBits] Error Message on HTML view In reply to
Hi,

Thanks for your feedback.
Can you send me the HTML file that you couldn't open it via fileman?

TheStone.

B.
Quote Reply
Re: [TheStone] Error Message on HTML view In reply to
Actually, it's any HTML file. One time it will work; the next time it won't. I've thought of trying a reinstall of Fileman.
Quote Reply
Re: [JimBits] Error Message on HTML view In reply to
I couldn't find any problems with HTML editor on our server.
btw, could you give me your email address, I'll send you the package that was fixed some javascipt.

TheStone.

B.
Quote Reply
Re: [TheStone] Error Message on HTML view In reply to
Thanks! info@jimbits.com
Quote Reply
Re: [TheStone] Error Message on HTML view In reply to
Fileman (HTML View/edit) appears to only work if used from a machine that is NOT behind a firewall. I have tried this, it works from all machines directly connected, once you are on a network (and if you aren't using the very machine used as a gateway) it will not work at all, it'll just hang there.

Is there a work-around to make it work everywhere?



Unimpressed
Peter
Quote Reply
Re: [Peter544] Error Message on HTML view In reply to
Hi,

Sorry about the late reply. Actually, I just worked it out, so it will be fixed in our next release.
For now, could you change initInnerIFrame subroutine within editor.js file like:

function initInnerIFrame() {
......
if (typeof(document.frm_main.pre_content) == 'undefined')
return;
var initValue = document.frm_main.pre_content.value;
....
}

It should work.

TheStone.

B.

Last edited by:

TheStone: Apr 4, 2002, 2:16 PM
Quote Reply
Re: [TheStone] Error Message on HTML view In reply to
Hi guys,

I just found the best way to solve this problem, can you try the script bellow?:

Code:
function initInnerIFrame () {
if ( typeof(document.frames.editor_iframe.document.editor_iframe) != 'undefined' && typeof(document.frm_main.pre_content) != 'undefined' )
clearInterval(innerInterval);
}
.....
}
So, it won't depend on file size and internet speed any more.

I'd love to get some feedback about this issue.

TheStone.

B.

Last edited by:

TheStone: May 9, 2002, 2:45 PM
Quote Reply
Re: [TheStone] Error Message on HTML view In reply to
That fixed it thank you, but your code was missing a curly bracket so that needs to be added before it will work:

Code I have that works looks like this:

function initInnerIFrame () {

if ( typeof(document.frames.editor_iframe.document.editor_iframe) != 'undefined' && typeof(document.frm_main.pre_content) != 'undefined' )

{
clearInterval(innerInterval);

}
else {
return; // The inner <iframe> hasn't been loaded yet
}