Tabs & Map
-
Hi,
I got a problem with the map jquery tabs content, i saw your note on FAQ off this problem but my skill in jQuery don’t fix the issue with your faq =/
In my template file i got this code for my tabs systeme :
<script type="text/javascript"> jQuery(document).ready(function($){ jQuery("ul.tabs-nav").tabs("> .pane"); }); </script> <div class="post-tabs-ver"> <ul class="tabs-nav"><li class="current">Lieux de l'évènement</li><li class="">Carte & transports</li><li class="">Autres</li></ul> <div class="pane" style="display: block;"> <h4><?php the_field('location_name_event'); ?></h4> <p>Description : <?php the_field('location_description_event'); ?></p> </div> <div class="pane" style="display: none;"> <p><strong>Carte :</strong><br/> <?php $address = get_post_meta($post->ID, 'location_adresse_event'); $address1 = $address[0]['address1']; $address2 = $address[0]['address2']; $city = $address[0]['city']; $state = $address[0]['state']; $postal_code = $address[0]['postal_code']; $address = $address1 ." ". $postal_code ." ". $city; $shortcode_address = "[flexiblemap address='". $address ."' width='100%' height='400' title='Adelaide Hills' directions='true']"; echo do_shortcode($shortcode_address); ?> <p><strong>Transports : </strong><?php the_field('transport_event'); ?></p> </div> <div class="pane" style="display: none;"> <p><strong>Moyens de visite : </strong> <?php the_field('moyen_de_visite_event'); ?></p> </div>
How can i configure and witch class i need to put in your function jquery ?
<script> jQuery(function($) { $('div.ui-tabs').bind('tabsshow', function(event, ui) { $("#" + ui.panel.id + " div.flxmap-container").each(function() { var flxmap = window[this.getAttribute("data-flxmap")]; flxmap.redrawOnce(); }); }); }); </script>
Thanks for help.
Laurent
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Tabs & Map’ is closed to new replies.