Rich text Box

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/64540?pagenum=1
05 November 2025, 07:27

Topic


kolucoms6
Rich text Box
16 April 2007, 12:48


I am looking for a Rich Text Box , kind of one used in forum or may be somethinglike that.
I got one from http://www.kevinroth.com/rte/demo.htm but cant pass data from one page to another.
Any help will be highly appreciated.<

 

Replies ...


AnonJr
16 April 2007, 13:52


Have a search, a few people have tried to set up RTEs in Snitz in the past. I don't know if any were ever finished though.
Just out of curiosity, what do you mean by "cant pass data from one page to another"?<
kolucoms6
16 April 2007, 14:05



When I press " Submit", I cant get the data in next page.May be some error from my side.<
AnonJr
16 April 2007, 14:28


Is the form value empty? What about the other form values?<
MaD2ko0l
16 April 2007, 14:35


WebWizGuide has a RTE app that you could probly use, i think they also have this set up on there forums as well.
maybe that will be a good place to start<
kolucoms6
16 April 2007, 16:33


:-)

Thanks a lot all.
I am using a RTE .. working sample demo you will find at

http://www.getfunds.info/cattes/add.asp

Now, when I submit, value in RTE(Name is 'Message') , always passes as "Put your display content here" or whatever is default to the next page.It does pass the modified or edited text.
Any Suggestion ?
Let me know if you want to have a look at the script. I will post txt file.<
AnonJr
16 April 2007, 16:53


I'd check your code changes - I suspect that there is some missing JavaScript or something. This really is a question for the support at wherever you got the RTE from (if they provide support) since it seems to be an issue with the RTE itself...
Or you can try to get a hold of Nathan, and get what he was working on since (to the best of my knowledge) it was working fine with Snitz.<
kolucoms6
16 April 2007, 17:02



Just if you need it :


Code used in the page :

<script language="JavaScript" type="text/javascript" src="richtext.js"></script>
<TR>
<TD>
<p align="right"><i>Details : Please include brief details</i> :
</TD>
<TD >

<script language="JavaScript" type="text/javascript">

<!--
function submitForm() {
//make sure hidden and iframe values are in sync before submitting form
//to sync only 1 rte, use updateRTE(rte)
//to sync all rtes, use updateRTEs
updateRTE('Message');

//updateRTEs();
alert(document.form2.Message.value);

//change the following line to true to submit form
return true;
}

//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("image/", "", "");

//Usage: writeRichText(fieldname, html, width, height, buttons)
writeRichText('Message', '<b>Put your display content here </b>', 550, 200, true, false);

//uncomment the following to see a demo of multiple RTEs on one page
//document.writeln('<br><br>');
//writeRichText('Message', 'read-only text', 550, 100, true, false);
//-->

</script>




Here is the javascript used :

http://www.get2funds.info/cattest/richtext.js
<
kolucoms6
17 April 2007, 05:01



I guess I have resolved it..

I will keep updated this forum

<
kolucoms6
19 August 2007, 02:18


A small issue :

After saving the data in my DB, how to retrieve it in formatted ?

<!--
function submitForm() {

//make sure hidden and iframe values are in sync before submitting form
//to sync only 1 rte, use updateRTE(rte)
//to sync all rtes, use updateRTEs
updateRTE('Message');

//updateRTEs();
//alert(document.form2.Message.value);

//change the following line to true to submit form
return true;
}

//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("image/", "", "");

//Usage: writeRichText(fieldname, html, width, height, buttons)
writeRichText('Message', '', 550, 200, true, false);

//uncomment the following to see a demo of multiple RTEs on one page
//document.writeln('<br><br>');
writeRichText('Message', 'read-only text', 550, 100, true, false);
//-->

</script>



In below Line

writeRichText('Message', 'aaa', 550, 200, true, false);

In place 'aaa', I want to display some value from my db.
Any Suggestions ?


<
MaD2ko0l
20 August 2007, 19:55


dont u just replace aaa with somthiing liek " & strDBNTUserName & "

that will display the user name to u.
does that help?<
kolucoms6
21 August 2007, 08:37


'aaa' is inside a javascript ...
If I do like this :

DataDb=RS(" ataDb")

Inside Javascript,


writeRichText('Message', DataDb, 550, 200, true, false);

Above Lines will work ?
<
© 2000-2021 Snitz™ Communications