clickable rows load to same page iframe?
-
hi tobias,
i have urls in tablepress cells. on click I need them to open in an externally created iframe located on my site above the table.
using basic solution you proposed i can get new window. am having trouble integrating with iframe however as it simply grabs the href and so prevents an html a target=”iframe1″ solution.
code currently
<script type=”text/javascript”>
jQuery(document).ready(function($){
$(‘.tablepress’).on( ‘click’, ‘tr’, function() {
var $a = $(this).find(‘a’).last();
if ( $a.length )
window.open($a.attr(‘href’));
} );
});
</script>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘clickable rows load to same page iframe?’ is closed to new replies.