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

  • Home
  • SEARCH
  • 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 8797927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:57:30+00:00 2026-06-13T23:57:30+00:00

I was try to attach the ckeditor to a textarea in php page, which

  • 0

I was try to attach the ckeditor to a textarea in php page, which is being called by ajax in a html page, but ckeditor is not appearing in textarea. Can any one have any idea, Why it is not happening, it just making me freak.

TRY1.HTML

    <script type="text/javascript">
    function load()
    {
  if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
       xmlhttp=new XMLHttpRequest();
      }
   else
      {// code for IE6, IE5
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
       }
     xmlhttp.onreadystatechange=function()
      {
        if (xmlhttp.readyState==4 && xmlhttp.status==200)
          {
             document.getElementById("div_content").innerHTML=xmlhttp.responseText;
          }
      }
       xmlhttp.open("GET","try2.php?",true);
       xmlhttp.send();
      }
     </script>
     <!--end tinymcs-->

       </head>
       <body>
       <input type="button" onclick="load()">
       <div id="div_content">

       </div>


       </body>
       </html>

TRY2.PHP

      <textarea id="txt1"> </textarea>
  • 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-06-13T23:57:31+00:00Added an answer on June 13, 2026 at 11:57 pm

    That is because the textarea in which you are binding the editor was not present on the initial load of the page so its not getting binded.
    You should bind that on the success call back of ajax call.
    On Success you should do bind the textarea with ckeditor and it will work.

    if (xmlhttp.readyState==4 && xmlhttp.status==200) {
        document.getElementById("div_content").innerHTML=xmlhttp.responseText;
        document.getElementById("txt1").ckEditor();
        //or whatever the exact code you do for ckEditor
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Try to see which cast is faster (not necessary better): new c++ case or
My app successfully makes email but when I try to attach an image the
So... I load a node form via ajax into another page. I try to
In my database application, when I try to attach a page to a site,
try: html = urlopen('http://glbse.com/api/asset/' + asset.name) except: print 'error while updating the price of
when i try to attach entity to context i get an exception An object
when I try to attach a file to an email, I get a java.io.FileNotFoundException:
When I manually start Firefox and then try to attach to it using Browser.AttachTo(Find.First())
I'm running Visual Studio 2008 on Windows 7. When I try to attach to
I try to attach a on select event to my Android android.widget.Spinner I know

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.