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 October 3rd, 2002, 10:08 PM
CTretina CTretina is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 9 CTretina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to CTretina Send a message via Yahoo to CTretina
ASP.NET and WYSIWYG Editor: IFrame as HTML Control?

To all who may be interested:

Based on the sample code available on devArticles.com, I am currently attempting to develop a WYSIWYG Editor ASP.NET server control of my own. That being the case, I would like to pose this question to you all: is it possible to run the IFrame as an ASP.NET HTML control and, if so, may I then use the IFrame's Text property to read/write from/to the control?

If so, then that would save me a great deal of coding time. If not, then might someone know how to read/write to the IFrame and expose a Text property for use in ASP.NET? How does EditWorks Pro accomplish this task?

Thank you all for your help. Have a good one!

Reply With Quote
  #2  
Old October 3rd, 2002, 11:35 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
Hey Im the guy who made ewp.net!

EWP.NET does not use IFRAME control, but uses hidden field control !
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #3  
Old October 4th, 2002, 10:56 AM
CTretina CTretina is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 9 CTretina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to CTretina Send a message via Yahoo to CTretina
How Does the Hidden Control Update?

To James:

When you say that "EWP.net does not use IFRAME control, but uses hidden field control," I assume that you mean EWP.NET uses the IFrame HTML element but then stores the output from the IFrame within the hidden HTML server control, correct?

If so, then how is this accomplished - whenever the IFrame is changed, do you use JavaScript to update the hidden control? I assume then you can expose the hidden control's Text property, yes?

Also, I can clearly see how to read from the editor, but how can I write to it? For example, if I have an article saved in a database and I wish to edit it using the WYSIWYG editor, then how do I set the editor's Text property to that of the articles' HTML?

Your help would be greatly appreciated. Thank you for your time and have a good one.

Reply With Quote
  #4  
Old October 4th, 2002, 08:39 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
I don't think I am suppose to tell you this ... Intellectual Property

You see, we are actually selling ewp.net and telling you how it was made mean ...you know what i mean

but I ll tell you this much, as there are other things that will come in your way after solving this part.

Quote:
When you say that "EWP.net does not use IFRAME control, but uses hidden field control," I assume that you mean EWP.NET uses the IFrame HTML element but then stores the output from the IFrame within the hidden HTML server control, correct?


that is correct! Hidden HTML Server control is used as an interface between the IFrame and ASP.NET codes.

Quote:
If so, then how is this accomplished - whenever the IFrame is changed, do you use JavaScript to update the hidden control? I assume then you can expose the hidden control's Text property, yes?


This is handled exactly same as the editor used as an example in the WYSIWYG article by mytch! Javascript's OnSubmit event is used to update the hidden control.

Yes but not Text...its Value... Hidden Control's Value property...

Quote:
Also, I can clearly see how to read from the editor, but how can I write to it? For example, if I have an article saved in a database and I wish to edit it using the WYSIWYG editor, then how do I set the editor's Text property to that of the articles' HTML?


Well you just do the reverse of setting the text. If you understand the JS, you should be able to do this.

hope this helps

Reply With Quote
  #5  
Old October 4th, 2002, 08:40 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
hey dude..

Ben is bugging me now for revealing our code for ewp.net

That's the last one one ewp.net source dude!!!!

Reply With Quote
  #6  
Old October 4th, 2002, 09:19 PM
CTretina CTretina is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 9 CTretina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to CTretina Send a message via Yahoo to CTretina
My Apologies

To James:

I'm sorry for causing you to reveal more than you would've liked regarding EditWorks Pro.NET. Please accept my sincerest apologies.

Nonetheless, I truly appreciate your help. Thank you and have a good one.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > ASP.NET and WYSIWYG Editor: IFrame as HTML Control?


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway