#4 open
Mudasser

AJAX related

Reported by Mudasser | April 9th, 2009 @ 08:12 PM | in 0.5

Hi

I have tried to incorporate MooEditable in an external PHP file I am calling through AJAX. The problem is that when the editor loads it is disabled. It works fine in a simple PHP page but in an external file it doesn't. It looks fine and even the button rollover works (You can see the screenshot attached). It does not let me type in it. A response will be highly appreciated.

Regards

Comments and changes to this ticket

  • Lim Chee Aun

    Lim Chee Aun April 9th, 2009 @ 08:17 PM

    I would need to view a testcase page and view how you implement the code.

  • Mudasser

    Mudasser April 9th, 2009 @ 09:11 PM

    I have uploaded test case over the link below

    http://obscure.pk/testcase/

    There are two files index.php which is loading an external file onclick which is 'update_lang.php' , this file has code for mooEditable.

  • Lim Chee Aun

    Lim Chee Aun April 11th, 2009 @ 09:46 AM

    Ok, try these:

    1. Remove the 'domready' event binding. It's pretty useless since the page is already loaded.

    2. Put the <script> after the HTML code, so that it will execute after the HTML is in place.

  • zebul0n

    zebul0n May 7th, 2009 @ 03:39 AM

    I faced the same problem with firefox 3.*

    When calling an external PHP file through AJAX : the editor loads disabled ! Couldn't reproduce this problem with another browser.

    It seems that firefox is firing mooeditable too quickly !! ??

    A quick fix is to apply a 1 millisecond delay before firing mooeditable.

    You can check an example here : http://zebul0n.free.fr/mooeditable/ Of course, you need to open it with firefox, otherwise you won't notice any difference.

  • Lim Chee Aun

    Lim Chee Aun May 15th, 2009 @ 03:26 PM

    • State changed from “new” to “open”

    @zebul0n that's probably because of the time the iframe needs to load on Firefox. Not sure why, but I guess the 1 second delay should work, for now.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A simple web-based WYSIWYG editor, written in Mootools.

People watching this ticket

Attachments

Tags

Pages