Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 52

JavaScript is a dynamically-typed language commonly used for client-side scripting. Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.

4 votes
Accepted

How to detect the current site/frontend language within Javascript

According to https://stackoverflow.com/questions/662923/extract-lang-value-using-javascript you can use document.documentElement.lang …
Bakual's user avatar
  • 5,582
2 votes

How to render System Message from AJAX call

The JavaScript function depends on the presence of a container with the id system-message-container. Some templates don't have this container at all, or only if there is a message to show. …
Bakual's user avatar
  • 5,582
2 votes
Accepted

how to exclude a script written in the index.php (only) in the frontend

You could wrap the JS loading into an if clause which checks if the current layout is an edit layout. Something like this (untested): if (JFactory::getApplication()->input->get('layout') != 'edit') { …
Bakual's user avatar
  • 5,582
6 votes

Adding javascript file in the footer & custom styles

JDocument->addScript() has options to defer the loading of the script and/or load it async. See the API doc: http://api.joomla.org/cms-3/classes/JDocumentHTML.html#method_addScript This will allow th …
Bakual's user avatar
  • 5,582
4 votes
Accepted

Should I change the way I include javascript into Joomla? If yes, why and how?

If you're including the JavaScript as a user and customized to your article, then it's fine. Especially if it is different for each article. … You then can add the JavaScript to that layout and reuse it for each article you want. …
Bakual's user avatar
  • 5,582