Rich text Box - نوشته شده در (1898 Views)
Average Member
kolucoms6
مطلب: 845
845
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.<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
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"?<
نوشته شده در
Average Member
kolucoms6
مطلب: 845
845

When I press " Submit", I cant get the data in next page.May be some error from my side.<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Is the form value empty? What about the other form values?<
نوشته شده در
Senior Member
MaD2ko0l
مطلب: 1053
1053
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<
© 1999-2010 MaD2ko0l
نوشته شده در
Average Member
kolucoms6
مطلب: 845
845
:-)

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.<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
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.<
نوشته شده در
Average Member
kolucoms6
مطلب: 845
845

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
<
نوشته شده در
Average Member
kolucoms6
مطلب: 845
845

I guess I have resolved it..

I will keep updated this forum

<
نوشته شده در
Average Member
kolucoms6
مطلب: 845
845
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 ?


<
نوشته شده در
Senior Member
MaD2ko0l
مطلب: 1053
1053
dont u just replace aaa with somthiing liek " & strDBNTUserName & "

that will display the user name to u.
does that help?<
© 1999-2010 MaD2ko0l
شما باید یک متن وارد کنید