Hi, been looking but not finding an answer, and getting a fire under my but too.
How do I create multiple instances correctly in ASP?
I get he created, but they all have the same textual content, the one I set on the first one.
How do I create multiple instances correctly in ASP?
I get he created, but they all have the same textual content, the one I set on the first one.
RE: Multiple intances in ASP
In each instance you need to assign the text value to the editor. This is
oFCKeditor.Value = "whatever the value is"
oFCKeditor.Create "FCKeditor1"
Next, if you are pulling text from a database or a file, it's best to assign the value of the text to a variable
for example
sTextfoo = rs("foo")
sTextbar = rs("bar")
When you create the instances of FCKEditor, you would assign variables to the properties of the editor
oFCKeditor.Value = sTextfoo
oFCKeditor.Create "FCKeditorfoo"
.
.
.
oFCKeditor.Value = sTextbar
oFCKeditor.Create "FCKeditorbar"
good luck!