Support » Plugin: Title Experiments Free » Javascript option breaks when posts are loaded via ajax

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Funk

    (@jasonlfunk)

    Hey Josh –

    I’m not quite sure what you mean. They shouldn’t have to be refreshed. Were they showing up blank prior to updating them?

    Thread Starter Josh Christopherson

    (@joshchris)

    Hi Jason, what I’m running into is that the ‘titleex_run_experiment’ function is only called on document.ready. When I load new posts in via ajax, it does not run that function again – and thus, does not show the titles. Does that help?

    To fix it currently, I’m just calling titleex_run_experiment() after I run the ajax and that does the trick.

    Plugin Author Jason Funk

    (@jasonlfunk)

    Hey Josh –
    Sorry I didn’t understand the first time! Yes, what you are doing is the right way to fix it.

    How are you loading the pages via ajax? Does WordPress have a built in way to do that? If so, I may be able to work around the problem by detecting that it’s happening and returning the title instead of the (blank) placeholder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Javascript option breaks when posts are loaded via ajax’ is closed to new replies.