Problem with showPrint option

Page: 1

Author Post
Member
Registered: Mar 2015
Posts: 3
Location: Italy
These are the option I've used for my gallery:

colorTheme:white group:export showPrint:true

My problem is that Print control does not appear.
Someone can help me please?
Administrator
Registered: Aug 2008
Posts: 3382
The print control does not appear where???

If on Android, this is by design. Android browsers don't have scriptable print services so there's not much point putting up a print button that will do nothing.

iOS is spotty. To the best of my knowledge, Safari on iOS will print, but no other browser will.

The showPrint functionality is really only useful and reliable on desktop browsers. If it's giving you grief on a desktop browser, I would like to see the page that has the problem to see if I can determine what's up.
Member
Registered: Mar 2015
Posts: 3
Location: Italy
Sorry,
the problem is on desktop browser and affect all browser (IE, chrome, Firefox, Safari..) so I think I've made some mistake.

The control appear using older version of floatbox but using latest it doesn't appear anymore.
Using older version I put float box options on rev attribute and all works well.
After the upgrade I made some changes according floatbox documentation putting all the options on fb-options attribute and testing that any single option is still valid.

here a code sample:

<a href="http://xxxxxxx.it/files/yyyy/141209/530793/gatto.jpg?022554" title="gatto.jpg" rel="floatbox.row_images_export" rev="colorTheme:white group:export showPrint:true printLinkPos:tl" data-fb-options="className:`allegato_img floatbox allegato_img floatbox`;printLinkPos:tl;showPrint:true;group:export;colorTheme:white;" id="fb_6">...</a>

I hope this help to solve my problem.
TYA
Administrator
Registered: Aug 2008
Posts: 3382
Perhaps the problem is you've got some options assigned to the rev attribute and others assigned to the data-fb-options attribute. Pick one, and put all your options together on the one you pick.

If that doesn't solve your problem, you'll have to show me the live page so I can see what's really going on.
Member
Registered: Mar 2015
Posts: 3
Location: Italy
Removing rev doesn't solve.
Sadly I cannot put live any sample, but this is the part:

<tr id="row_images_export">
<td colspan="2">
<div class="spacer"></div>
<strong>Immagini pubblicate nei portali:</strong>
<div class="separator_blu"></div>
<div id="row_images_export_text" class="allegati_row_text">Sono presenti 2 immagini<span id="row_images_export_link_show" class="allegati_show_hide" style="display:none;"><a href="#" onclick="box_allegati_toggle('row_images_export','show'); return false;">visualizza</a></span><span id="row_images_export_link_hide" class="allegati_show_hide"><a href="#" onclick="box_allegati_toggle('row_images_export','hide'); return false;">nascondi</a></span></div>
<div id="row_images_export_box"><div class="allegato_img principale floatbox "><a href="http://localhost/cache/annunci/140910/526520/800x600/15_mgzoom.jpg?030610" title="15_mgzoom.jpg" data-fb-options="className:`allegato_img principale floatbox allegato_img principale floatbox`;colorTheme:white;group:export;showPrint:true;printLinkPos:tl;" id="fb_3"><img src="http://localhost/cache/annunci/140910/526520/120x90/15_mgzoom.jpg?030610" id="fb_4"></a><span class="link_full_size"><a href="http://localhost/files/annunci/140910/526520/15_mgzoom.jpg?030610" target="_blank" title="visualizza a tutto schermo" class="no_text2 icon maximize" data-fb-options="className:`allegato_img principale floatbox allegato_img principale floatbox`;" id="fb_5"></a></span></div><div class="allegato_img floatbox "><a href="http://localhost/cache/annunci/140910/526520/800x600/21_mgzoom.jpg?030610" title="21_mgzoom.jpg" data-fb-options="className:`allegato_img floatbox allegato_img floatbox`;colorTheme:white;group:export;showPrint:true;printLinkPos:tl;" id="fb_6"><img src="http://localhost/cache/annunci/140910/526520/120x90/21_mgzoom.jpg?030610" id="fb_7"></a><span class="link_full_size"><a href="http://localhost/files/annunci/140910/526520/21_mgzoom.jpg?030610" target="_blank" title="visualizza a tutto schermo" class="no_text2 icon maximize" data-fb-options="className:`allegato_img floatbox allegato_img floatbox`;" id="fb_8"></a></span></div></div>
<div class="spacer"></div>
</td>
</tr>

Administrator
Registered: Aug 2008
Posts: 3382
Unfortunately, picking through code almost never reveals the cause of problems. The problem is occurring in a context, and if I can't see that context I won't be able to help determine the problem's real cause.

Page: 1