- This topic has 3 replies, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Problem with Maps JS
Tagged: maps
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>
<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
Can you provide an url for this?
your JS generates an error in firefox, see your firefox error console. Fix this error and everything will be ok.