in2tech Posted June 25, 2016 Report Posted June 25, 2016 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! Quote
web541 Posted June 25, 2016 Report Posted June 25, 2016 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 Quote
Members Vangelis Posted June 25, 2016 Members Report Posted June 25, 2016 (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 June 25, 2016 by Vangelis Quote
in2tech Posted June 26, 2016 Author Report Posted June 26, 2016 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.