Advanced Search  
Advanced Search


Pages: [1]
Print
Author Topic: adding javascript disables others  (Read 1343 times)
Oliver Matthews
Offline Offline

Posts: 3



« on: April 23, 2012, 06:27:37 PM »

Hi, new here, and fairly new to Joomla. Here's my problem:
I added javascript for ubaplayer (a html5/flash fallback mp3 button). I used the following code in the header of the Sierra main template:

<?php
$document = &JFactory::getDocument();
$document->addScript( 'media/media/js/my.js' );
$document->addScript( 'media/media/js/my_other.js' );
$document->addStyleSheet('media/media/css/styles.css');
?>

followed by

<script>
            $(function(){
        //basic config
        $("#ubaPlayer").ubaPlayer();
            });
        </script>


Everything works perfectly, it plays the music even on mobile devices.... but it turns out it also disables all the other things running on the site: s5_ImageSlide and s5_Tab, and s5_flex_menu are all disabled.

Pls Help? There must be a way to add this script without killing all the others..

Thanks
Logged
mikek
Shape 5 Administrator
Offline Offline

Posts: 19390



WWW
« Reply #1 on: April 24, 2012, 07:31:39 AM »

Hello,

That means there is a script error in your javascript. We cannot provide support on third party scripts, you would need to contact it's developer.
Logged

Mike
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Using Firebug will save you so much time, frustration and forum questions:
http://getfirebug.com/


- Need some custom coding done on your site? Use our Shape 5 Hire a Coder program for free:
http://www.shape5.com/hire_a_coder/listauctions
Pages: [1]
Print

Jump to:  


Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Page created in 0.045 seconds with 17 queries.