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 8435749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:59:51+00:00 2026-06-10T06:59:51+00:00

I’m facing the following problem: I have my index.html page, with a div#content. Within

  • 0

I’m facing the following problem:

I have my index.html page, with a div#content. Within this div, i load pages via my js

//JavaScript Document
$(document).ready(function() {
    $('#loader').load('pages/loader.php').hide();
    $('#content_container').load('pages/dashboard.php');
    //$('.dashboard_quick_news').load('pages/quicknews.php');
});

$('.content_link').click(function(){
    var href = $(this).attr('href');
    $('#loader').show();
    $('#content_container').hide().load(href).delay(1800).fadeIn('normal');
    $('#loader').load('pages/loader.php').delay(1000).fadeOut();
    return false;   

});

Now this all works fine and the loaded pages get shown like they should.
Though within one of my loaded pages I included a wysiwy editor (Nicedit)

<script type="text/javascript" src="../../nicedit/nicEdit.js"></script>
        <script type="text/javascript">
            bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
        </script>

When i load this page via the index (with the .load function), the wysiwyg editor does not show (also tested with TinyMCE). When i just visit the page stand-alone (via URL) the wysiwyg editor shows perfect so the paths are correctly set. Also tested with the wysiwyg js included in my index

To test if maybe the .load pages do not include javascript, I inserted an alert on the page with the wysiwyg editor.
This alert does show, though the wysiwyg editor does not.

Does anybody know how to solve this problem?

Thanks allready

  • 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-10T06:59:53+00:00Added an answer on June 10, 2026 at 6:59 am

    Have you checked the resulting DOM and see if the editor markup has been attached to your page ?

    Most (all?) of these WYSIWYG editors use an iframe. I’m not sure how they decide the size of it but I guess since you send in a textarea as a parameter, they use the dimensions of that textarea. Thus, make sure the size of the textarea is large enough and check that the injected iframe is large enough.

    EDIT:

    It’s difficult to pinpoint the problem without knowing where your textarea is when the editor is initiated (more code please?).

    I think the problem is in bkLib.onDomLoaded which is run at the very moment the DOM is loaded. However, jQuery’s ready() does (almost) the same thing. Thus when you call load() to get the contents of a page the DOM is already loaded so bkLib.onDomLoaded will not run.

    What you need to do instead is to instantiate the editor after the requested .php page has loaded:

    $('#content_container').load('pageWithEditorScript.php', function() {
        nicEditors.allTextAreas();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I have thousands of HTML files to process using Groovy/Java and I need to
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.