javascript - Printing content without tabs in joomla community builder -


i try print backend in community builder (with profiler pro extension) tabbed content loaded database. content in tabs, javascript window.print(), it's possible print content of 1 tab @ time. have reduced script it's essential, stuck. has tried before community builder or has idea how solve this? here code:

<?php class cbview_user {function edituser( $user, $option, $newcbuser, &$postdata ) {global $_cb_framework, $_plugins; $tabs           =   new cbtabs( ( ( ( $_cb_framework->getui())) )); $tabcontent     =   $tabs->getedittabs( $user, $postdata ); echo $tabcontent;  } }   // class cbview_user ?> 

i'd in template rather having override classes. if have override files in profile pro, make sure in template or via plug-in. never override core files.

1) have tried setting styles on print style sheet ( somewhere /templates/yourtemplate/css/print.css if 1 has been set in template.) tell

display:block !important 

on hidden tabs?

on demo of profile pro saw, work make hidden areas visible:

.smoothness .ui-tabs .ui-tabs-hide,.tab-page {  display:block !important;  } 

i think best solution (if works) doesn't require file overriding, , print style sheet there for.

2) failing that, on page load, use simple jquery or mootools script copy content tabs print-only area. use print style sheet show copy , hide other copy. again, no core files overridden, pretty safe method.

3) if have access override javascript:window.print() button, call part of larger function uses jquery lay out content first (would not work using native browser print button).

also may know appear using create tabs : http://api.jqueryui.com/tabs/ - info there how working.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jquery - Keeping Kendo Datepicker in min/max range -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -