Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1115615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:11:03+00:00 2026-05-17T03:11:03+00:00

Hi I have a div box that opens on my page and then loads

  • 0

Hi I have a div box that opens on my page and then loads a html file which contains CKeditor to deal with the text area. The problem is that if I view the html file in my browser everything works well and I have all the editing options. When I use it in my JS script I get nothing. Can anyone help me please ?

The JS code that does this is here

        $(document).ready(function(){ 

              $('#'+divbox).load('../customer_rm/display_email_send.php', function() {
                      // once loaded 
                    CKEDITOR.replace( 'mail_body' );

and the working HTML file is here

    <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
    <html xmlns='http://www.w3.org/1999/xhtml'>

    <head>
    <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
    </head>
    <body>


    <style type='text/css'>
    table.t {border: 1px solid black}
    td, tr {border: 0}

    .bdr {
        border: 4px solid black ;
    }
    .white {
        background-color:#FFF ;
    }

    </style>

    <div align='center'>

    <br><br />

    <table id='t' width='700' border='2' bgcolor='#ccc'>
      <tr >
        <td width='20'>&nbsp;</td>
        <td width='50'>&nbsp;</td>
        <td width='50'>&nbsp;</td>
        <td >&nbsp;</td>
        <td width='20' >&nbsp;</td>    

      </tr>

      <tr>
        <td>&nbsp;</td>
        <td rowspan='3'>
        <input type='button'id='send' value='Send'
        style='width:60px; height:40px '
         /><hr>
        <input type='button' value='Close'
        style='width:60px; height:20px '                        onclick='fadeout()' 
         />
        </td>
        <td><input type='button' value='To :' /></td>
        <td><input type='text' class='white' id='mailto' size='80'  /></td>
        <td>&nbsp;</td>
      </tr> 

      <tr>
        <td>&nbsp;</td>

        <td><input type='button' value='Cc :' /></td>
        <td><input type='text' class='white' id='mailcc' name='mailcc' size='80' /></td>
        <td>&nbsp;</td>
      </tr>  
      <tr>
        <td>&nbsp;</td>

        <td><input type='button' value='Bcc :' id='bcc'  /></td>
        <td><input type='text' class='white' id='mailbcc' size='80' /></td>
        <td>&nbsp;</td>
      </tr>  
      <tr>
        <td>&nbsp;</td>
        <td><input type='button' value='Subject'
        style='width:60px; height:20px '                        onclick='fadeout()' 
         /></td>
        <td colspan='2'><input type='text' class='white' id='subject' size='89' /></td>


        <td>&nbsp;</td>
      </tr>  
      <tr>
        <td>&nbsp;</td>
        <td colspan='3'>
          <textarea  id='mail_body'  class='white'  style='height:380px; width:600px; bgcolor:#fff ' >
          </textarea>
        </td>
        <td>&nbsp;</td>
      </tr>  
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>  
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>  

     </table>


    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T03:11:04+00:00Added an answer on May 17, 2026 at 3:11 am

    Why not use Jquery to call CKEditor to replace your div…seems much more straightforward:

    $( 'textarea' ).ckeditor();
    

    Reference Here: http://ckeditor.com/blog/CKEditor_for_jQuery

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html page that opens a new window and loads a basic
Hi guys i have a div box with text which is hidden until you
Let's say we have a box with some short paragraphs: <div style=overflow:hidden> <p>Some text</p>
i have simple chrome extension that opens JQuery dialog box on each tab i
I have a search box that selects users and sends them into a div
I have a jquery dialog box that opens by means of a link. I
I'm trying to make a div have an on click function that opens the
Hi I have a colorbox which opens on every page when the user clicks
I have a div called images_box which has a width of 277px . Within
I have this HTML code: <div class='com_box'> <div class='com_box_c'> <div class='com_box_info'> <a id='quote'>quote</a> </div>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.