Bootstrap Theme, can not be integrated JS into default.master.tpl

This discussion is related to the Bootstrap addon.
kopnakopna Coimbra Portugal ☯

I found an interesting photo and video slider to integrate it in my forum. But there is a problem with the JS code
«script type="text/javascript"»
$(document).ready(function() {
$('#slider').iView();
});
«/script»
that initiates the start of the slider.
«script »

«/script»
«/body»
«/html» it is all right, ok. But after running the script the following message appears Something has gone wrong. how to fix it?
Version Vanilla 2.3 Bootstrap 2.5.1

Thank you

DanHawk

Comments

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    First, search the forum (or read the FAQ in Tutorials) to find out how to get a detailed error message when you see

    Something has gone wrong

    Then, post the actual error message.

    DanHawk
  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    When you add javascript to the default.master.tpl , you must use {literal} script goes here{/literal} tags.

    whu606kopnaDanHawkhgtonight
  • kopnakopna Coimbra Portugal ☯
    edited January 2017

    @vrijvlinder said:
    When you add javascript to the default.master.tpl , you must use {literal} script goes here{/literal} tags.

    @vrijvlinder Thank you for your help ! :awesome: :+1:

Sign In or Register to comment.