Tabs Hiden map broken
-
Hi, I have this in my code:
<ul class="tabs-nav"> <li><a href="#description" id="descriptionlink">Description</a></li> <li><a href="#location" id="locationlink">Location</a></li> </ul> <?php echo "<div id='description' class='content'>"; echo get('description'); echo "</div>"; echo "<div id='location' class='content'>"; flexmap_show_map(array( 'center' => get('ubicacion_latitud').','.get('ubicacion_longitud'), 'width' => 580, 'height' => 400, 'zoom' => 16, 'title' => get('descripcion_nombre'), 'description' => get('descripcion_ubicacion'), 'directions' => 'false', 'hidepanning' => 'false', 'hidescale' => 'false', 'maptype' => 'roadmap', )); echo "</div>"; ?> <script> //Tabs $(document).ready(function() { //add active class to the first li $('.tabs-nav li:first').addClass('active'); //hide all content classes. $('.content').hide(); //show only first div content $('.content:first').show(); //add the click function $('.tabs-nav li').click(function(){ //remove active class from previous li $('.tabs-nav li').removeClass('active'); //add active class to the active li. $(this).addClass('active'); //hide all content classes $(".content").hide(); //find the href attribute of the active tab var activeTab = $(this).find("a").attr("href"); //fade in the content of active tab $(activeTab).fadeIn(700); return false; }); }); </script>
I’ve seen this solution in FAQ
<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>
How could apply this in my case?, I’m not very good with jQuery.
Thanks for the great help.
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Tabs Hiden map broken’ is closed to new replies.