|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello...
I've used the both parts of this article and they all worked fine... but the problem is that i want to place that Editor(part 1) on my Send Email Page. So that users can write messages with full formating controls. but when i wrote it the Text in the iframe didnt accessable in the ASP page. Would anyone plz tell me the way to access the Formated Text written in the iframe and use it in the ASP page with full formating. Thanks... |
|
#2
|
|||
|
|||
|
Hi,
what you need to do is tell the form that the contents of the iFrame should be sent to a <hidden> field in the form.. what I mean is... under the <form> tag, you need something like <input type="hidden" name="content"> then you need some Javascript to tell the form that when you press the "send email" button (to submit the form), the contents of the iFrame should be sent to that hidden form.. you can write something like: function sendEmail() { document.emailform.content.value = iView.document.body.innerHTML; } and in the form tag, have something like: <form action="sendEmail.asp" name="emailform" method="post" onSubmit="sendEmail()"> so when the form is submitted, the sendemail function is called, that then grabs what ever is in the iFrame window and places it in the hidden field called "content". Then on the ASP page which sends the email, you need a request.form tag.. something like: emailBody = request.form("content") then that will contain the iFrame contents! Hope this helps! Regards, |
|
#3
|
|||
|
|||
|
Hello...
Yes... Yes... Yes.... It really world... thanks a lot... ![]() |
|
#4
|
|||
|
|||
|
gooooood!!!
![]() |
|
#5
|
|||
|
|||
|
Need your help
How did you get the posting to database to work.
Is it possible to send me your work files so that I can peruse them. Hopefully I can find out where I went wrong. Thanks. |
|
#6
|
|||
|
|||
|
hi,
my files are not working at the mo (lol!!) but the description above works perfectly (..or it did work perfectly til I botched it up!) basically, all you need is a hidden field in your form (in the wysiwyg editor) which is populated with the text in the editor window when you press a button. On this button you need a Javascript function to tell the page that when the button is pressed, get what ever is in the window and put it in to the hidden file.... then call the form action eg: <form action="do_add_to_db.asp"> etc. then on do_add_to_db.asp you need to get the results from the form and simply add it to your db...something like rsUsers.new content = request.form("content") rsUsers.Update where "content" is the name of your hidden form! Hope this helps? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Another WHSIWYG Questoin :) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|