I would like to have the editor load a varying html file (depending on the section the user wants to edit)
so using ASP, they arrive at the editor page having chose to edit "foobar section"
i would want oFCKeditor.Value = foobarsection.htm < The files contents and not the string "foobarsection.htm"
But the ASP <!-- #include file="variablename"--> doesnt work.
Obviously i am using the ASP object. The javascript doesn't work either for similar reasons.
Any help or point in the right direction would be appreciated!
Thank you!
so using ASP, they arrive at the editor page having chose to edit "foobar section"
i would want oFCKeditor.Value = foobarsection.htm < The files contents and not the string "foobarsection.htm"
But the ASP <!-- #include file="variablename"--> doesnt work.
Obviously i am using the ASP object. The javascript doesn't work either for similar reasons.
Any help or point in the right direction would be appreciated!
Thank you!
Re: I cant set oFCKeditor.value to be html from file in ASP why?
I figured out my own question, and i feel so stupid.
The second method on this page:
http://www.codeproject.com/asp/readfile.asp
Has the file system object which works to open the contents and then place them in the editor on page load.
Anyone else who couldn't figure this out PM me
Mods feel free to move/delete this at your leisure.