Hi!
Perhaps I'm blocked this mornig or still to stupid... (alredy googled)
How to load an *.htm file from server into the fckEditor using ASP?
All samples are with static text...
I tried this... But get an error?!?
<iframe style="hidden" name="SourceHTML" src="../index.htm" width="0" height="0"></iframe>
...
oFCKeditor.Value = document.getElementById('SourceHTML').value
Any help?
Perhaps I'm blocked this mornig or still to stupid... (alredy googled)
How to load an *.htm file from server into the fckEditor using ASP?
All samples are with static text...
I tried this... But get an error?!?
<iframe style="hidden" name="SourceHTML" src="../index.htm" width="0" height="0"></iframe>
...
oFCKeditor.Value = document.getElementById('SourceHTML').value
Any help?

RE: Load HTML File from Server?
I can't remember the code right now, but it would be something like .contentWindow.document.innerHTML
But then you need to write back the modified file to the server, so you need asp code to do that on the server, and so it would be easier to just read the file the same way and putting it in a textarea or javascript string.
RE: Load HTML File from Server?
RE: Load HTML File from Server?
or
var sText = 'This is another string';
RE: Load HTML File from Server?
How can I read and write a *.htm file from an to disk...
Static text is not the problem....
RE: ** SOLVED ***
Dim Datei
set Datei = server.CreateObject("scripting.filesystemobject")
set fd = Datei.OpenTextFile(Server.MapPath("../Index.htm"),1)
oFCKeditor.Value = fd.readall
fd.close
set fd= nothing
rgds Frank