Jump to content

Php Combo Box, With Ajax Load Into Wysiwyg Textarea - Need Help?


supernurd

Recommended Posts

Hello everybody,

 

First of all, I have created a simple content management system. Using PHP/MYSQL/HTML5/CSS3. The Blog page shows all articles, which can be deleted or edited. An article can also be added within the WYSIWYG. This system works fine.

 

However....

 

We want to make things simpler.

 

Using a combo box that loads the content into the text-area.

 

The Problem we are experiencing is that when the WYSIWYG is put in, it does not allow the content from the database to enter the text area.

 

Without these two lines of code which are placed in the <head>. The content loads into the text-area just fine.

 

"

<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>

<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>

"

 

What needs to be done to allow the content to enter the WYSIWYG ?

 

Please help ?????

 

Any help will be very appreciated

 

Thank you

 

 

I have attached the files that allow this to work.

 

/combo.php will show the text area with the combo box

 

if you would like to test it a connection.php file will need to be created.

 

A mysql database with a table called blogs.

 

with the attributes of (id,blog_title,blog_content)

combo.php

getuser.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.