ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 20th, 2002, 12:17 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Unhappy Another WHSIWYG Questoin :)

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...

Reply With Quote
  #2  
Old July 20th, 2002, 05:49 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
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,
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #3  
Old July 22nd, 2002, 05:28 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Hello...

Yes... Yes... Yes.... It really world... thanks a lot...





Reply With Quote
  #4  
Old July 22nd, 2002, 05:36 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
gooooood!!!


Reply With Quote
  #5  
Old July 28th, 2002, 07:19 PM
romeovoid romeovoid is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 14 romeovoid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old July 29th, 2002, 03:08 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
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?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Another WHSIWYG Questoin :)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT