Events Made Easy Forums How do I … Problem with Maps JS

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43383
    Anonymous
    Inactive

    Franky,

    I’m using the following code for switching the events tabs:

    <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js”></script&gt;

    <script type=”text/javascript”>

    $(document).ready(function(){

    $(‘.pstv-cl-events li.pstv-cl-current’).find(‘div.pstv-cl-eventHolder’).fadeIn(500, function() {height = ($(‘.pstv-cl-events li.pstv-cl-current’).find(‘div.pstv-cl-eventHolder’).height()); $(‘div.pstv-cl-pad’).animate({‘height’:height+’px’},250);});

    $(‘ul.pstv-cl-events li.pstv-cl-tab > span’).click(function() {

    if ($(this).parent().attr(‘class’).indexOf(‘pstv-cl-current’) == -1) {

    $(‘.pstv-cl-events li’).removeClass(‘pstv-cl-current’);

    $(‘.pstv-cl-eventHolder’).fadeOut(500);

    $(this).parent().addClass(‘pstv-cl-current’);

    $(this).parent().find(‘div.pstv-cl-eventHolder’).fadeIn(500, function() {height = ($(‘.pstv-cl-events li.pstv-cl-current’).find(‘div.pstv-cl-eventHolder’).height()); $(‘div.pstv-cl-pad’).animate({‘height’:height+’px’},250);});

    }

    })

    });

    </script>

    This is stopping the maps from viewing.

    I’ve activated the “Always include JS in header?” setting, but then the tab switching doesn’t work.

    I know this isn’t a bug but hoped you might be able to point me in the right direction, please?

    Thanks,

    Tom

    #48226
    Franky
    Keymaster

    Can you provide an url for this?

    #48227
    Anonymous
    Inactive
    #48228
    Franky
    Keymaster

    your JS generates an error in firefox, see your firefox error console. Fix this error and everything will be ok.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top