I haven't thorough investigated this but:
When you 1st load (not via ajax) a page all the share "blocks" are present. If you load the page via ajax the blocks are not displayed. Suggests that js code to build / add these blocks is not being called(?).

Well I'm not exactly sure how the blocks are built, dynamically added(?), but they're empty in the iosSimulator for iphone etc.

I realise this is not a ssp problem per se, but maybe someone has a tip. If I find a solution I'll post it here. Somehow the code to trigger/build the ssp block(s) - must be in the body, in the body of the jQuery page I suppose, and not in the head section.

Comments

jamescook’s picture

Well I've nailed it down a little. The plugin adds code to end of your html, a

block just before the closing <\body> tag. This contains code such as:
<!--//--><![CDATA[//><!--
(function ($) { jQuery(document).ready(function () { if(jQuery("#field_socialshareprivacy-192").length > 0){ jQuery("#field_socialshareprivacy-192").socialSharePrivacy({
services : {
facebook : {
which only gets fired on document ready. I can't remember the exact jQuery mobile equivalent right now, pageinit or pageshow something like that ... $(document).on('pageinit',function(){
jamescook’s picture

Issue summary: View changes

more info

ytsurk’s picture

maybe check the 'partner' project secure share, they use better javascript integration with ctools, not inline js ..

ytsurk’s picture

Assigned: Unassigned » ytsurk
Category: Task » Feature request
Issue summary: View changes
Status: Active » Needs work
jamescook’s picture

just some feedback on this.

The "problem" with jqm is that it doesn't load the "full" html page. D7 is "clever" with libraries and only loads them on the pages that need them (mostly in the header). So in the case of an ssp page loading via ajax/jqm the libraries are not present.

Even if you force the libraries to be loaded, ssp as it stands relies on :hover etc. which doesn't work well/at all on touch devices.