Jump to content

Recommended Posts

Posted

I have this code that came with the module and the path is not working to make the accordion work.

Any ideas?

<!-- Javascript -->
<script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script>

<script type="text/javascript" src="<?php echo fileurl('/core/modules/AptInfo/js/tabslides.js');?>"></script>

<script type="text/javascript">

     function initialize() {
       var mapDiv = document.getElementById('map-canvas');
       var map = new google.maps.Map(mapDiv, {
         center: new google.maps.LatLng(<?php echo $airport->lat; ?> , <?php echo $airport->lng; ?> ),
         zoom: 14,
         mapTypeId: google.maps.MapTypeId.SATELLITE
       });
     }


     google.maps.event.addDomListener(window, 'load', initialize);
   </script>

I have double checked the path's and they are correct. Just can't figure it out!

Thanks for your help!

Posted

1. Check your browser's console for any errors

2. Make sure that the files are actually in the correct location

3. Re-Upload all files of the module

4. If the accordion requires jQuery to work, make sure your version/ordering is correct

As I don't own the module myself, I can't provide you with much other help, so you might want to contact the developer

  • Members
Posted (edited)

try ti change

<?php echo fileurl('/core/modules/AptInfo/js/tabslides.js');?>
<?php echo fileurl('/lib/js/acarsmap.js');?>

to

<?php echo SITE_URL?>/core/modules/AptInfo/js/tabslides.js
<?php echo SITE_URL?>/lib/js/acarsmap.js

Edited by Vangelis
Posted

It turns out that his jQuery I think it was code needed to be updated. And in the mean time, I just used the accordion that came with the template and modified it to work with his template.

Thanks everyone for your help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...