How can I use Social Sharing in a div which is dynamically generated after page load.

edited February 2015 in Social Sharing
I use the Social Sharing code on a property details page, and the code works well. I have created a second version of the page, which is rendered in a div on a search results page. I would like to use the social sharing code on this page as well, but the social sharing icons will not render if the div is populated after the page load has completed. How can I accomplish this?


  • Bob_DamanBob_DamanMemberModerator
    edited February 2015
    If you have sharing icons like for example:
    <div class="oas_box oas_box_count_v"> <span class="oas_btn oas_btn_facebook_like_but" title="Send to Facebook"></span> <span class="oas_btn oas_btn_twitter_tweet_but" title="Send to Twitter">/span> </div>

    You can trigger the rending like this:
    <script type="text/javascript"> var _oneall = _oneall || []; _oneall.push(['social_sharing', 'do_render_element', 'oas_box']); </script>


Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.