Jump to content

Javascript Path?


in2tech

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Members

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
Link to comment
Share on other sites

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...