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.

-2
votes
2answers
354 views

How to access the email of the user who created a submission?

I have the following working javascript code: var user_email = document.getElementById("jform_user_email"); user_email.value = "<?php echo JFactory::getUser()->email; ?>"; The next lines ...
1
vote
1answer
721 views

Add click event on bootstrap tab?

How to add an onClick event on Joomla bootstrap tabs. https://api.joomla.org/cms-3/classes/JHtmlBootstrap.html echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'monday')); echo ...
0
votes
1answer
29 views

Send values from article to article

I have two articles in my Joomla site. One article has various links to the same article. The other article display, with code of java script, the HTML content of a file depending on what link was ...
0
votes
1answer
73 views

Make calendar dynamically in 3.7

I recently found out that the datepicker and calendar changed a lot from 3.6 to 3.7 and as a result I'm having a problem with my custom backend component. Originally this is the code I was using to ...
0
votes
1answer
103 views

Parsing Error Javascript in php include page on the test server

We're getting this error in our test environment: Parse error: syntax error, unexpected 'var' (T_VAR) in /home/usaspo5/public_html/dev/usgnew/components/com_usg_programs/tmpls/default.php We have ...
1
vote
0answers
204 views

RSForms - Change the items of a radio group based on a selection of a drop down

I need to change the items of a radio group based on a drop-down selection in RSForm pro. Right now I'm using the Conditional Fields feature to show different radio group field and that caused too ...
1
vote
0answers
39 views

stop reloading the page when choosing a payment method in virtuemart checkout

on virtuemart checkout process, on choosing the payment method, when click on the radio button, page reloads. i have wrote a function that does something when page reloads or refreshes. but the ...
1
vote
0answers
13 views

Need some suggestion regarding strategy of scraping article view times from another webpage to use in K2 item

I am building a video blog page using Joomla 3.0 + k2 hosted on my own Ubuntu 14.04 server, the videos will be uploaded to sites like youtube or vimeo too. I want to show the viewed times of the ...
1
vote
0answers
102 views

Plugin conflict troubleshooting

Joomla 3.4.8. T3 Joomlart JA University Template I have been experiencing some conflicts certain plugins I have installed on my site, two in particular - only one of them seems to work at a time. ...
0
votes
0answers
49 views

Lazy loading script doesn't run after AJAX load

Issue related to Video lazy loading skipping first video in every list The css shows up with a black box and the arrow, but script doesn't seem to run after ajax load from pagination, and also when ...
0
votes
0answers
10 views

Joomla -> JEvents Calendar -> Override Submit Button of edit form

I am using Joomla 3.8 with JEvents v3.4.47. The page where you can edit the calendar entry contains a joomla submit button: <button onclick="Joomla.submitbutton('icalrepeat.save');" class="btn ...
0
votes
0answers
37 views

Question about adding custom javascript to template

I´m working in a Joomla! Template and am wondering: Why the javascript in the site doesn´t work if the file is inside a folder in the root folder of the template ? Why only works if the javascript ...
0
votes
0answers
121 views

Cannot read property 'appendChild' of null when embedding JS game

Update 2: Ok, so I've realised that the 'css' was actually 'scss', after compiling it down everything is working as expected. Update: I have managed to get the cards to load, by moving the js file ...
0
votes
0answers
143 views

Animated change logo size on scroll script creates a library conflict or some other loading issue

I'd like to have the logo shrink when the page scrolls down and expand to original when the page scrolls to the top. Except for the preloader with rotating icon, my code prevents the page from loading ...
0
votes
0answers
106 views

addScript breaking frontend editing

I have a piece of code in a component that I am building that loads maps in a tab in the admin view. The code works perfectly on the admin side, but when I attempt to add frontend editing, it's ...
0
votes
0answers
27 views

One page overwrite my jquery

I have one problem with my Joomla site, I have the site in 7 language, for all of them I have done a file form.php where I have submit form for customers to contact me and this file is in all 7 ...
0
votes
0answers
120 views

Joomla Contact Enhanced required field jquery

I am using joomla contact enhanced form component for my site. Now when I submit the form without the required field, the page is not scrolling back to the top rather it's stuck in the bottom section ...
0
votes
0answers
473 views

How do I make a system message appear with Javascript with the right CSS?

I would like to make a system message appear using Javascript. I have used the following code so far to make the system message appear: var jmsgs = ['Deletion cancelled - no records deleted.']; ...
0
votes
0answers
401 views

How to disable fields in a fieldset?

I am using this code to disable fields in the form based from what I have searched in stackoverflow: jQuery('#reportFilters').children(':input').prop("disabled", "disabled"); But it does not work. ...