Forums

This topic is locked

On-Line HTML Editor and Form Mail

Posted 09 Oct 2002 18:30:06
1
has voted
09 Oct 2002 18:30:06 Jim Moore posted:
Does anyone know if, or how, you can use George Petrov's PD On-line HTML Editor with Matt's Form Mail. I would like to create the capability for one to be able to post a resume (created with a Word Processing program) to the On-line HTML editor or compose the resume directly in the editor and when they click the save button the HTML version is e-mailed to my client. Any suggestions will be appreciated.

Replies

Replied 09 Oct 2002 21:52:52
09 Oct 2002 21:52:52 Matt Homey replied:
ANY working form that you have created that has a normal textarea can have a RichText area added.

Just download this:
www.betaparticle.com/test/Editor.zip

Change two variables in the test.asp file:

1. rs("Body"
2. document.form1.submit - change to the form name
3. You may also need to change the name="EditorValue" to whatever your form is named

And insert like the test.asp file into you already working form in the place of the common textarea.

Good Luck!

Sincerely,

Matt

Rerun generation - www.betaparticle.com/home
Replied 09 Oct 2002 23:58:53
09 Oct 2002 23:58:53 Jim Moore replied:
Thanks for your help.

Jim
Replied 10 Oct 2002 03:39:27
10 Oct 2002 03:39:27 Jim Moore replied:
MAtt,

One question. You said change two variables one of which is rs("Body". Do you mean replace "Body" with the name of my recoord set? I forgot to mention I am usinf Dreamweaver MX to create my VB ASP VB scrip.
Thanks again,
Jim
Replied 10 Oct 2002 13:33:14
10 Oct 2002 13:33:14 Matt Homey replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
MAtt,

One question. You said change two variables one of which is rs("Body". Do you mean replace "Body" with the name of my recoord set? I forgot to mention I am usinf Dreamweaver MX to create my VB ASP VB scrip.
Thanks again,
Jim
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

That's if you're doing an update. Just replace the text area with the included files like in the test.asp. Then remove the RS b/c you're doing an insert rather than an update. The new RichTextArea that you're inserting (in the zip) needs to be renamed to whatever the textarea name originally was so the insert will work. Also the form name needs to be changed so that when you press save it submits the correct form.

1. You have a textarea on a form that is already working. Replace the text area with the lines of test.asp. Then...

2. &lt;textarea name="EditorValue" style="display: none;"&gt;&lt;%=rs("Body"%&gt;&lt;/textarea&gt;

name="EditorValue" needs to be changed to whatever the original textarea was called. Remove the RS unless you're doing an update in which case you'll need a recordset value to put there.

3. document.form1.submit();

form1 needs to be changed to whatever you originally named the form. "form1" is the default DWMX uses.

Sincerely,

Matt

Rerun generation - www.betaparticle.com/home

Edited by - namrehs on 10 Oct 2002 13:39:45
Replied 11 Oct 2002 01:38:06
11 Oct 2002 01:38:06 Jim Moore replied:
Matt,
I think I may have confused you about the form mail that I would like to use with George Ptrov's HTML editor so as to be able to post a resume into the HTML Editor and after clicking "save," have the html transfered to the form mail application which would then send it to a client. The formmail I was referring to is Matt Wright's Formmail program which is written in Perl. Do you believe I can use the PD On-line HTML Editor wirh it or do I have to use a Java Script or other formmail program? If so could you suggest such a program?

Also, I am using DWMX and have the HTML Editor extension. Can I use it to
apply the HTML to the formmail?

Sorry to bother you so much.

Jim
Replied 11 Oct 2002 23:04:44
11 Oct 2002 23:04:44 Dennis van Galen replied:
Jim,

You can use ASPemail at www.aspemail.com
It works great, we use it at work for a application or two and comes with clear examples, best of all it's free download. And the editor is not by George, i wish it was though, look how he altered it for UDzone and the other zones <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Happy coding !

With kind regards,

Dennis van Galen
Webmaster KPN Services
Financial and Information Services

Reply to this topic