How to include an external JS file in a Bootstrap template?


0 votes
asked Mar 16, 2016 by valerie (400 points)
I am trying to use Bootstrap template for website I am building, but in one page I want to include JS file, because I have build there funcionalities I need for my application.

4 Answers

0 votes
answered Mar 27, 2016 by Sillett (960 points)

Firstly, you will need to include the Mootools code in your extension. There are two ways to include a Java Script file using the Joomla.
Please refer to this Adding JavaScript - Joomla! Documentation which explains what you can do with command output
commented Mar 27, 2016 by barredo (550 points)
Documentation may not look as expected in this version of Internet Explorer
commented Mar 28, 2016 by wakayama_mak (230 points) 1 flag
DocsTranslate Joomla
0 votes
answered Mar 30, 2016 by Feuerbergs (590 points)

You could include one of two files, Post Back True.
At my job, we keep most of our CSS in a single file.
Create a function in Java Script Helper to include your Java Script file.

Here is the site http://www.codeproject.com/Articles/196727/Managing-Your-JavaScript-Library-in-ASP-NET
commented Mar 31, 2016 by v3057 (640 points)
Is there a way to reference Session variables within the Javascript Library
0 votes
answered Apr 8, 2016 by Saccuc (1,350 points)
0 votes
answered Apr 9, 2016 by Couts (410 points)
Check out Unholy Rails: Adding JavaScript to Rails RailsApps for more info, see quoted section below
commented Apr 10, 2016 by No_Murak (170 points)
There is another way of looking at this issue that you might find interesting

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...