We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
2
votes
1answer
85 views

In what order do the different parts of Joomla insert javascript into the FIFO stack?

There is a lot of confusion on J.S.E about how to include javascript into Joomla in the correct order. I’ve seen a number of questions on J.S.E about it, but they never cover everything completely. ...
0
votes
2answers
94 views

Javascript in custom content plugin output

I want to use javascript in my custom Joomla content plugin, but I can't get my custom text when type text in my input by using getElementById. My code is: <?php $output = ' <input ...
1
vote
0answers
184 views

Change menu display [closed]

I'm trying to change the way my menu is being displayed. It works now like this: The first level is just displayed on home page. Children items are being displayed as a dropline bar under the header. ...
3
votes
1answer
553 views

Content Modal Popup fails due to Javascript error

Using my own answer for What is best approach to show the component page in popup-modal window without header and footer?, I mentioned that I was getting JS errors, so when as I further investigate, ...
3
votes
1answer
3k views

How can I save multiple values selected in a list?

I have a form with the dynamically generated XML and by dynamically, it was programmatically created during getForm function. I want to save the value I selected as a key:value pair to be stored in a ...
3
votes
1answer
2k views

How to hide/show input fields in form?

Good Day guys, I have this code right here in javascript on hiding/showing an input field: function HideShow() { var Type = document.getElementById("jform_subscription_type"); if(Type.value=...
0
votes
1answer
234 views

Realtime Push Popup window for website [closed]

Is there a way to trigger a popup on an end users browser in real time, not just when page loads, sort of like a live push notification but instead a popup window (modal) opens up on the end users ...
-1
votes
1answer
1k views

Backend module does not run jQuery / JavaScript script?

I have made a module that in the backend, the user selected from 2 dropdown multi select lists, some names and photos and in the frontend I print the selected names/photos. To make it easier for user ...
2
votes
1answer
745 views

Refreshing a part of the page after Dropdown list selection

How can I refresh a part of the page when I select from a dropdown list using the onchange in HTML? I have a Reports dropdown list. Once I select a Report, a list refreshes only displaying those that ...
2
votes
1answer
251 views

Add javascript after a form or at the end of the page

I have a javascript code and it's necessary load my code after my form or in end of my page. When I use this code load before my form in my page: <script type="text/javascript"> /// my code &...
8
votes
3answers
1k views

Optimizing frontend load, how do I properly combine and compress my JS?

My website for an enterprise client has approximately 90 assets that download on load, 35 or so are JS files. Even "optimizing" extensions that are made for Joomla only seem to get me down to 31 or ...
2
votes
1answer
119 views

Joomla 3.x and SSE

Is it possible to implement SSE on Joomla, like how it is implemented in pure PHP here? Here is what I have so far: administrator/components/com_component/controllers/sync.php class ...
2
votes
1answer
588 views

RokSprocket automate Load More

for people that have used Joomla for a while you are probably familiar with RokSprocket - a content module from RocketTheme, very useful. It has a 'Load More' button, that can load the next bit of ...
2
votes
2answers
897 views

Changing order of javascripts on load

I have written my own template and some part of the content is as the following: <?php // Add JavaScript Frameworks JHtml::_('bootstrap.framework'); // Add Stylesheets JHtmlBootstrap::loadCss(); /...
1
vote
1answer
274 views

Javascript validation check box issue with Joomla v3.3

I tried to implement a check box to go to the products pages of this joomla v3: http://www.nordicpharma.com/es/nuestros-productos.html Two methods was used without success ! http://jsfiddle.net/moja/...
5
votes
2answers
2k views

Unsetting javascript added to head data by ->addScriptDeclaration() in template

I'm trying to unset all javascript declarations in the document head. By this I mean inline javascript that is added by 3rd party extensions using ->addScriptDeclaration(), and not javascript files ...
2
votes
2answers
657 views

2.5 template/css issues: article links not working in Chrome, link colors locked globally to white and email cloaking

I'm a Joomla, CSS and php newbie. I was tasked with creating a site for the school I just started working for based on its already hacked-up Joomla 2.5 template. I hacked it some more to get the ...
2
votes
1answer
940 views

RSForms Pro changing the class of Radio Group label

I am setting up an RSForm! Pro form using Radio buttons, but I want to hide the radio buttons input and use the label for the selection, the HTML for the question is: <div class="rsform-block ...
0
votes
1answer
748 views

RSForm Pro Search form

I have created a search form with RSForm Pro, unfortunately it isn't working. The concept is to do a TAG Search all the Fields of the Form (Select and Radio) have values which are part of a URL which ...
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
819 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
498 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
8k 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
4k 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
705 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
1k 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
656 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
147 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
981 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
121 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
103 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
353 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 ...
9
votes
6answers
7k 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 ...