• Resolved maerygr

    (@maerygr)


    Hi,

    On one of the project that is using plugin, a have case when I need couple of recipes load using ajax. So I’ve created action that sends content of recipe but JS don’t apply to it. Do you have any public API call to make reinitialize once again rather than load once again JS file (it’s double rating and some other components)?

    PS: maybe simple way will be add some function like window.mediavine_init(#id_of_container) or something like that.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mediavine

    (@mediavine)

    Hello,

    Sorry for the delay in response! We don’t currently have a public API like that currently, but this is a great suggestion. We’ll get it into a future release and I’ll post back here once that release is out.

    Thanks,
    Ethan
    Mediavine

    Thread Starter maerygr

    (@maerygr)

    Hi, so for my implementation I used ajax loading script for plugin, but sometimes when page does not have plugin initialized.

    I have following error:

    https://prnt.sc/lrz7xv

    Maybe you know why it happens?

    Thanks!

    • This reply was modified 5 years, 4 months ago by maerygr.
    • This reply was modified 5 years, 4 months ago by maerygr.
    Plugin Author mediavine

    (@mediavine)

    Hi, @maerygr!

    We’re happy to give this a look. If you want to join our Slack channel, we can chat with you in real time to get this sorted out.

    Follow this link to join the Slack room! 🙂

    Thanks!
    John-Michael
    Mediavine

    Plugin Author mediavine

    (@mediavine)

    Hi! Just wanted to follow up on this issue. We refactored some thing for the 1.2.3 release, and this is now possible. You can do:

    window.mvCreate.init(DOM_NODE)

    where DOM_NODE is any DOM node that contains a card, defaulting to document.

    Please let us know if this helps!

    Ethan
    Mediavine

    • This reply was modified 5 years, 4 months ago by mediavine.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Public JS API’ is closed to new replies.