Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

AJAX related

#4

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

Reported by Mudasser · April 9th, 2009 @ 08:12 PM

State: open
Milestone: 0.5
Assigned to: Lim Chee Aun Lim Chee Aun

Activity

  1. Lim Chee Aun
    Lim Chee Aun

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

    April 9th, 2009 @ 08:17 PM

  2. Mudasser
    Mudasser

    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.

    April 9th, 2009 @ 09:11 PM

  3. Lim Chee Aun
    Lim Chee Aun

    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.

    April 11th, 2009 @ 09:46 AM

  4. zebul0n
    zebul0n

    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.

    May 7th, 2009 @ 03:39 AM

  5. Lim Chee Aun
    Lim Chee Aun
    • 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.

    May 15th, 2009 @ 03:26 PM

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.