Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [javascript]

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.

1
vote
1answer
1k views

Add onclick/onsubmit event to form submit

I have made a plugin that add few fields on joomla registration form. Now I need to add a javascript event on submit that will handle those extra fields I added, but I couldn't find any way to ...
3
votes
1answer
735 views

Validate Checkboxes within a Hidden DIV Only If Shown - Chronoform

I have a form in Chronoform where there are two checkboxes, when you select the second checkbox, a hidden DIV becomes visible. Inside this hidden DIV there are 16 more checkboxes. At least one of ...
2
votes
3answers
1k views

Joomla $document->addScriptDeclaration with single quote and double quote

Iam struggeling with the situation that I have to use single quotes and double quotes in Joomla $document->addScriptDeclaration. $document->addScriptDeclaration(' jQuery(document).ready(...
1
vote
1answer
464 views

Remove head script not working in custom component

I'm using this lines to remove header scripts of Joomla I don't need it : $doc = JFactory::getDocument(); $dontInclude = array( '/media/jui/js/bootstrap.min.js' ); foreach($doc->_scripts as $...
9
votes
1answer
7k views

Add JavaScript with $doc->addScript with async=“true”

is it possible to use the addScript with async="true"? I found a hack that uses some clever quoting to trick the embed function, but it seems as if this could be a native feature: $doc->addScript(...
3
votes
2answers
3k views

Create custom module with javascript .js

I want to create a custom module to insert this .js javascript into my joomla site; joomla 3.x version http://bigspaceship.github.io/shine.js/ how can I do to create my custom text to appear into a ...
1
vote
2answers
674 views

Print content in popup in template's index file

Hello, I have some string values like a contract detail in one variable of template index file. Here i also attached screenshot what i am getting right now. As you have seen in screenshot I have ...
2
votes
1answer
971 views

Execute SqueezeBox OnClose Event Multiple Time

I have a problem executing onclose event multiple time on page. I have used handler:iframe to display view in squeezebox modal. I have written following javascript:- on child page <script type="...
2
votes
1answer
606 views

Jquery marquee script not working in joomla?

I want to marquee some content divs with continues scrolling. I create a module then added the jQuery from this url: https://github.com/aamirafridi/jQuery. This code is working successfully in our ...
2
votes
3answers
1k views

Advice on creating a custom searchable db within Joomla

I have been asked by a friend if I can make their existing Library db more modern and user friendly, whilst incorporating it into their existing website. The existing db is a simple access db ...
1
vote
2answers
144 views

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

My "share this" button is written in the index.php and thus appear also in frontend straight into my editor. How could I disable it (only) when I use frontend editing? in my template/index.php : <...
1
vote
2answers
957 views

Responsive Equal Height Blocks in a Row - problematic in IE8

The Requirement: Equal Height Blocks in Rows I work on a lot of joomla sites whose designs require the various page divs to be equal in height. CSS Tricks has a good example of how to line up and ...
2
votes
1answer
117 views

Javascript Menu conflicts

I'm converting a static website to a Joomla 3.3 template. which has 1 level dropdown box javascript menu this is the function included in my "index.html" $(function () { /** ...
1
vote
2answers
102 views

How to reposition the notification message generated by CookieMonster plugin

I am using the plugin 'Cookie Monster' by herdboy which generates a cookie notification message displayed as either a div at the top/bottom of your page or as an overlay. The basic plugin options ...
1
vote
3answers
338 views

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

I use a lot of javascript on my site. It works and has passed crossbrowser testing, but the thing is the javascript files are being included within Joomla articles. I’ve read that this is the wrong ...
10
votes
2answers
2k views

How to render System Message from AJAX call

I would like to display a system message when I got back my ajax request. The ajax request returns the right message. I can test it with an alert. alert(result.message); Joomla.renderMessages(result....
2
votes
3answers
2k views

Plugin development - parse error: syntax error, unexpected 's' (T_STRING)

I'm having a shot at developing my first plugin for Joomla, its just a simple plugin which places some javascript just before the close of the body. The javascript works fine if I place it directly in ...
8
votes
6answers
6k views

Adding javascript file in the footer & custom styles

For fast page load I need to insert JS at the end of the page from components and modules. The following way of declaring scripts does not work to insert it at the bottom because there is no ...