Support » Plugin: Share This Image » Trigger plugin on ajax loaded image

  • Resolved whatleycc

    (@whatleycc)


    Hi,

    Nice plugin. Having an issue though trying to get the share buttons to trigger on an image that was loaded post an ajax call. I tried to force a trigger by calling in javascript the $().sti(); function again but it didn’t seem to work. Any suggestions?

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

    (@mihail-barinov)

    Hello,

    Try to use code

    $(selector).sti();

    where selector – string with css selection rules. It can be find in plugin settings page -> ‘Selector’ option.

    I tried to use the direct $(‘.share’).sti(); where I defined the .share in the backend as the selector.

    It didn’t work. I thought it might be because it’s getting fired too soon so I put in a setTimeout on the call for at least 1000 and it still didn’t trigger. This is to a confirmation on a gravity form.

    Plugin Author ILLID

    (@mihail-barinov)

    Maybe that code that you add are loaded before the common.js plugin file loaded.
    If it is possible I suggest you to add your code to common.js.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trigger plugin on ajax loaded image’ is closed to new replies.