Note that there are some explanatory texts on larger screens.

plurals
  1. POConflict between google map and jquery tab
    primarykey
    data
    text
    <p>I have used easy2map plugin in wordpress and jQuery tab as below</p> <p>in template file:</p> <pre><code> &lt;ul id="tabs"&gt; &lt;li&gt;&lt;a href="#" name="#tab1"&gt;Own Unit&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" name="#tab2"&gt;Franchise Unit&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="tabbed-content"&gt; &lt;div id="tab1"&gt; //short code of map 1 &lt;/div&gt; &lt;div id="tab2"&gt; //short code of map 2 &lt;/div&gt; &lt;/div&gt; </code></pre> <p>in jQuery :</p> <pre><code> &lt;script type="text/javascript"&gt; var map=jQuery.noConflict(true); function resetTabs(){ map("#tabbed-content &gt; div").hide(); //Hide all content map("#tabs a").attr("id",""); //Reset id's } var myUrl = window.location.href; //get URL var myUrlTab = myUrl.substring(myUrl.indexOf("#")); // For localhost/tabs.html#tab2, myUrlTab = #tab2 var myUrlTabName = myUrlTab.substring(0,4); // For the above example, myUrlTabName = #tab (function(){ map("#tabbed-content &gt; div").hide(); // Initially hide all content map("#tabs li:first a").attr("id","current"); // Activate first tab map("#tabbed-content &gt; div:first").fadeIn(); // Show first tab content map("#tabs a").on("click",function(e) { e.preventDefault(); if (map(this).attr("id") == "current"){ //detection for current tab return } else{ resetTabs(); map(this).attr("id","current"); // Activate this map(map(this).attr('name')).fadeIn(); // Show content for current tab } }); for (i = 1; i &lt;= map("#tabs li").length; i++) { if (myUrlTab == myUrlTabName + i) { resetTabs(); map("a[name='"+myUrlTab+"']").attr("id","current"); // Activate url tab map(myUrlTab).fadeIn(); // Show url tab content } } })() </code></pre> <p> My issue is that map gets fully loaded in tab1 but not in tab2.... Please help me!!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload