snarinsky
asked on
Free RTE ( http://freerichtexteditor.com/ ) . Problem preloading content.
Hello Experts,
I am new to ASP and relatively new to JS, so I apologize for this silly question.
I have a problem preloading content to Free Rich Text Editor( http://freerichtexteditor.com/ ).
I included all the requires files to my ASP page:
<script LANGUAGE="javascript" type="text/javascript" src="/Includes/JS/config.j s"></scrip t>
<script LANGUAGE="javascript" type="text/javascript" SRC="/Includes/JS/richtext .js"></scr ipt>
and initialized RTE in my <table></table> successfully:
<SCRIPT LANGUAGE=javascript>
initRTE(' ', ' ');
</SCRIPT>
Now I need to preload some content there. I have a variable on my page which is basically a value from the DB, which is generated dynamically and I can' hardcode it. The value of this variable is supposed to preload in the textarea of RTE.
I tried to initialize RTE like this, first parameter is supposed to be preloaded content.
<SCRIPT LANGUAGE=javascript>
initRTE('<%=myVariable%> ', ' ');
</SCRIPT>
But it didn't work.
At the same tme initRTE('some text ', ' '); works just fine.
I came across the following example for ASP:
http://mrcmain.net/Smitha/RTE/examples/example.asp
Can someone help me to make it work with VB6?
Thanks in advance.
I am new to ASP and relatively new to JS, so I apologize for this silly question.
I have a problem preloading content to Free Rich Text Editor( http://freerichtexteditor.com/ ).
I included all the requires files to my ASP page:
<script LANGUAGE="javascript" type="text/javascript" src="/Includes/JS/config.j
<script LANGUAGE="javascript" type="text/javascript" SRC="/Includes/JS/richtext
and initialized RTE in my <table></table> successfully:
<SCRIPT LANGUAGE=javascript>
initRTE(' ', ' ');
</SCRIPT>
Now I need to preload some content there. I have a variable on my page which is basically a value from the DB, which is generated dynamically and I can' hardcode it. The value of this variable is supposed to preload in the textarea of RTE.
I tried to initialize RTE like this, first parameter is supposed to be preloaded content.
<SCRIPT LANGUAGE=javascript>
initRTE('<%=myVariable%> ', ' ');
</SCRIPT>
But it didn't work.
At the same tme initRTE('some text ', ' '); works just fine.
I came across the following example for ASP:
http://mrcmain.net/Smitha/RTE/examples/example.asp
Can someone help me to make it work with VB6?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.