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

  • Resolved whatleycc



    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



    Try to use code


    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


    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.


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