Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • meziane Friend
    #731759

    Hi all,

    I tried to insert jpreLoader.js library in the template.

    I added this code in the head.php ( i put jpreloader.js in the js folder, and loaded successfully).
    <?php $this->addScript(T3_TEMPLATE_URL.’/js/jpreloader.js’); ?>

    and this before the </body>
    <script type=”text/javascript”>
    jQuery(document).ready(function() {
    $(‘body’).jpreLoader({onetimeLoad:false,showSplash:false,loaderVPos:’50%’});
    });
    </script>

    But it’s not working and i got this error:
    Uncaught TypeError: Cannot read property ‘jpreLoader’ of null.

    Can any one help me?

    pavit Moderator
    #752636

    Hi

    Try to take a look HERE
    You can embed using asset.xml file in templatesuberetc folder

    <scripts>
    <file>js/jquery.inview.min.js</file>
    <file>js/jquery.parallax-1.1.3.js</file>
    <file>js/jquery.placeholder.js</file>
    <file>js/script.js</file>
    </scripts>

    meziane Friend
    #752641

    Thank you, But my problem is not in including the file, i included it, I have a problem with conflicting Jquery!

    pavit Moderator
    #752644

    <em>@meziane 498953 wrote:</em><blockquote>Thank you, But my problem is not in including the file, i included it, I have a problem with conflicting Jquery!</blockquote>

    If javascript is loaded and then you get the error i think problem is in the js code , you can try to switch the template from Ja_Uber to joomla default protostar template and verify if the error is still there, if not then you can open a support ticket from THIS URL and Joomlart developers will take a look at it

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  pavit 8 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum