Author |
Topic |
|
kolucoms6
Average Member
845 Posts |
Posted - 16 April 2007 : 12:48:38
|
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.< |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 16 April 2007 : 13:52:08
|
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
Average Member
845 Posts |
Posted - 16 April 2007 : 14:05:23
|
When I press " Submit", I cant get the data in next page.May be some error from my side.< |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 16 April 2007 : 14:28:06
|
Is the form value empty? What about the other form values?< |
|
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 16 April 2007 : 14:35:52
|
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 |
|
|
kolucoms6
Average Member
845 Posts |
Posted - 16 April 2007 : 16:33:04
|
:-)
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.< |
Edited by - kolucoms6 on 17 April 2007 02:31:41 |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 16 April 2007 : 16:53:00
|
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
Average Member
845 Posts |
Posted - 16 April 2007 : 17:02:32
|
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
Average Member
845 Posts |
Posted - 17 April 2007 : 05:01:13
|
I guess I have resolved it..
I will keep updated this forum
< |
|
|
kolucoms6
Average Member
845 Posts |
Posted - 19 August 2007 : 02:18:43
|
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 ?
< |
Edited by - kolucoms6 on 20 August 2007 19:10:52 |
|
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 20 August 2007 : 19:55:19
|
dont u just replace aaa with somthiing liek " & strDBNTUserName & "
that will display the user name to u.
does that help?< |
© 1999-2010 MaD2ko0l |
|
|
kolucoms6
Average Member
845 Posts |
Posted - 21 August 2007 : 08:37:39
|
'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 ?
< |
Edited by - kolucoms6 on 21 August 2007 14:37:25 |
|
|
|
Topic |
|