|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
DHTML / WYSIWYG Editor
Has anybody solved how to get data out of a MySql database and into an <iframe> for EDITING purposes in a WYSIWIG style editor?
I read the post here ... dhtml editor ... and it "nearly" works for me. Using the suggestion in that thread, I can get the data into the iframe, but in the browser my page stops displaying at that point. So, no Submit button or closing html tags. Is there anybody who has actually been able to get this to work?This problem has been perplexing me for awhile now. Any help would be much appreciated. Thanks. |
|
#2
|
|||
|
|||
|
Hi JT,
All you need to do is use: myIFrame.document.write("<b>test</b>"); myIFrame.document.close(); The myIFrame.document.close(); line is the big clincher, and without it writing to the iframe wont work. Give it a try and it should work fine ![]() |
|
#4
|
|||
|
|||
|
Thanks for the replies.
Mytch - I've been very busy the last few days, so haven't yet had the opportunity to implement your suggestion. I will, however, give it a try and you'll no doubt here from me again if I cannot figure it out. Btw, if you are 'the' Mytch who is behind DevArticles, please accept my compliments on this website. It is an outstanding resource which I visit often. Omar - First, I just wanted to figure out how to do it myself, just to know how, if for no other reason. Having said that, I recently downloaded the files for htmlArea and am thinking about using it on my next project. Have you used it yoursef? If so, how do you rate it? In fact, I'd be interested in hearing reviews from anybody who has used htmlArea who wishes to comment. |
|
#5
|
|||
|
|||
|
Update
Just wanted to update this thread for anybody who encounters a similar problem in the future.
In fact, the initial problem I had was as simple as a missing apostrophe around an attribute value. I was, in fact, able to get the DHTML editor to work by using the approach recommended in the link I posted in the first post in this thread. Also downloaded HTMLArea and decided to use it in a project I am currently working on. I'm still working on the site, but so far HTMLArea appears to be an excellent alternative to building your own DHTML WYSIWYG editor, and I recommend anybody with a similar need at least check it out. JT |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > DHTML / WYSIWYG Editor |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|