PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Geo Mashup Tabbed box, each tab new map

  1. nvassos
    Member

    Hi Guys, I am using Geo-Mashup on a wordpress project. I have this code:

    http://pastie.org/1640897

    I am loading this script at the beginning of the page

    function tabSwitch_2(active, number, tab_prefix, content_prefix) {  
    
        for (var i=1; i < number+1; i++) {
           document.getElementById(content_prefix+i).style.display = 'none';
           document.getElementById(tab_prefix+i).className = '';
         }
         document.getElementById(content_prefix+active).style.display = 'block';
         document.getElementById(tab_prefix+active).className = 'active';      
    
     }

    My problem is the content it doesn't query again clicked. I want each click to load different map category pretty much. any help appreciated.

    Posted 13 years ago on Sunday March 6, 2011 | Permalink
  2. How does this relate to Gravity Forms?

    Posted 13 years ago on Monday March 7, 2011 | Permalink
  3. acastro917
    Member

    Hi Im not using Geo Mashup but actually using a autor-geolocation plugin for my post and would like to know if I can hook it to my front end form so when create a new post in gravityform it grab the geo information and paste in my post as it happen if I where posting from back end

    Posted 13 years ago on Sunday March 13, 2011 | Permalink
  4. Yes, it's possible. You could populate a hidden field with whatever information you want using API hooks and then if you need to insert that information into the post content you can use the Content Template functionality of the Post Body field to insert the value of that hidden field into the Post Content Template.

    Try searching the forums for populating hidden fields, there are plenty of examples for how to do so using the available API hooks.

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  5. acastro917
    Member

    Thanks will look around and update...

    Posted 13 years ago on Monday March 14, 2011 | Permalink
  6. acastro917
    Member

    I has search the forums and haven't find anything I could understand, I have no Idea how to start doing this hooks or else.

    Could you direct me how to star or where to put the hooks, I when to setup the first form and find hide field there is a option of choosing existing fields there appear several that are related to the autor-geolocation so I should make a post field for each of the field I need? what should I put in the dinamic field? the truth is that Im lose and need some jump start.

    Posted 13 years ago on Monday March 14, 2011 | Permalink