Questions tagged [jquery]

jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.[2] It was released in January 2006 at BarCamp NYC by John Resig. It is currently developed by a team of developers led by Dave Methvin. Used by over 60% of the 10,000 most visited websites,[3] jQuery is the most popular JavaScript library in use today.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Can I close mobile menu on click for anchor links

I have this small Joomla project and I need help with the mobile menu. The anchor links just scroll but the menu doesn't close. Is there any script I can add to the index.php? I'm using Joomla3 3x. ...
1
vote
1answer
19 views

Joomla trigger event when element in field of “filelist” type is selected

I am struggling since a few days with following problem. Using Joomla 3.9.2x and query 3.5.1. I am trying to display a modal "window" when an item is selected in a Joomla filelist field. I ...
1
vote
2answers
62 views

How to solve chosen/jquery/frontend violation

I am developing a component for a Joomla frontend site and when I include JHtml::_('formbehavior.chosen', 'select'); in the template form, I get this message in JavaScript Chrome Console (Mac OS X): [...
0
votes
2answers
42 views

Joomla Subform adding row, the selector event is not fired if I change the value of the select element?

I have a subform which is working perfectly itself. If I add a new row (+), I have add the function as mentioned on joomla subform documentation: jQuery(document).on('subform-row-add', function(event, ...
0
votes
1answer
32 views

Owl Carousel not working in Joomla, why?

I am making a custom module using Owl Carousel 2. For some reason it just doesn't work in Joomla. The html structure is there in frontend, but the owl carousel is not displayed. Unfortunatly, there ...
2
votes
1answer
91 views

Update List field rendering after ajax update

for one of my extensions i need to update a select list by ajax. the whole ajax call is working and i got the new option vars for the select list. I add those options in the ajax's "success" function ...
0
votes
1answer
20 views

Joomla 3 Article Gallery View stopped displaying articles

I have a website with some menu items using the Article / Gallery View option to display a list of articles in blog style. It has been working perfectly for a few years now, but it stopped working in ...
3
votes
1answer
365 views

Is it possible to load a newer jQuery version?

Is it possible to override the native JHtml::_('jquery.framework') loaded by Joomla, using some line of php? I understand I could replace this line in my template. But since I am using a template ...
0
votes
1answer
147 views

Issues with cookie bot on Joomla 3x and jQuery

I am trying to install a cookie library on a site. We are getting jQuery is not defined from the cookie library. Presumably because it is being loaded before the jQuery library. The jQuery library is ...
-1
votes
1answer
27 views

How do I find the first NON bootstrap class ancestor of my current module position?

Not sure I'm wording this right so please forgive me. I'm working on a situation where I want to apply the background to the 1st NON .container ancestor of my current module. So, for example.. <...
2
votes
2answers
248 views

How do you assign jQuery scripts to an article?

I'm working on adding a simple feature to a single Joomla article. Editing the article itself is necessary in this case, I can't modify the template files (or add the JS to the entire site). In the ...
0
votes
0answers
11 views

Why am I getting an editors iframe popup in tiny mce editor when I embed a canva button in it

I am trying to embed a canva button in tinymce editor. Everything works fine. The canva url get loaded in a iframe but at the same time an iframe is also loaded in the back with the home url. How to ...
0
votes
0answers
32 views

Joomla 3. Dependent select in custom component

I make a component for Joomla 3. It has two lists "City" and "Place". How can I make the "Place" list update without reloading the page when I select "City"? <field name="cityid" type="sql" class="...
2
votes
2answers
41 views

Link to Page & Pre-Filter Portfolio Items

Joomla 3.9.10 I am using this template. I would like to create a link on my home page that when clicked, will take the user to the portfolio page and display a pre-selected tab.. For example my link ...
1
vote
1answer
27 views

How to pass a php array to javascript array/object with non-sequential keys

I'm trying to pass a php array to javascript, but the array has non-sequential keys. Here is a portion of the array: Array ( [1812] => Array ( [RecID] => 1 [...
0
votes
0answers
139 views

Adding li to ul causes all li to end up outside the ul

I have a page that has the following uls on it: <div id="team1" class="team_name">Desperate Housewives <ul class="sortable ui-sortable" id="sortable_1" ...
1
vote
2answers
263 views

jQuery global array showing as undefined

I have set a couple of global variables on page load as follows: jQuery(document).ready(function() { console.log("Onload PHP vis_options:"+JSON.stringify(<?php echo json_encode($...
0
votes
1answer
676 views

Setting a Start/End time to J2store Date picker field

I'm looking for a bit of help with regards to a Date/Time (Date Picker) field in J2store. A friend of mine has set up the field no problem, however, they want to restrict the times that can be ...
1
vote
1answer
131 views

iFrame with javascript

I would like to summarize my problem: I need to obscure the source of the iframe from the source code. To do this I have to use javascript code and obfuscator. By inserting the following obfuscated ...
0
votes
1answer
134 views

jQuery is not loading in new window in Joomla

jQuery is not loading in new window in Joomla I have a page default.php in component module. default.php contains defined('_JEXEC') or die('Restricted access'); $document = JFactory::getDocument(); ...
1
vote
1answer
246 views

Autoscroll a Bootstrap Row/Columns in Joomla Module

I am using a K2 Content module to display 'Sponsors' of an event. You can see an example here I have managed to set this up so that the columns can be scrolled manually using a mouse drag but ideally ...
1
vote
1answer
411 views

Is there a method to sort the FormBehavior.chosen output in Joomla 3?

The chosen multiple select result outputs always in ascending order of the array, regardless of the selected order. I couldn't find information related to ordering in the JHtml attribute array. I ...
0
votes
1answer
181 views

JQuery error after joomla 3.8.10 update

Hello I get this jquery error after my last kunena update to 3.8.10: "Uncaught TypeError: $(...).insertAtCaret is not a function". You can see the complete error in the following capture: This error ...
1
vote
2answers
195 views

Chronoforms 6: jQuery.G2 is undefined

I have an issue with Chronoforms6. I'm using jQuery in my template and include a Chronoforms form in an article by using this shortcode {chronoforms6}myForm{/chronoforms6}. The issue is a this error ...
1
vote
0answers
319 views

jQuery is not a function in ajax function

I'm modifying the website (I got it the way it is right now, maybe even worse). I'm getting the "Uncaught TypeError: jQuery(...) is not a function" on the website, the error appears in ajax function, ...
2
votes
1answer
36 views

Make div disapear after a while

I have made a page, where if the user update its form, the backend will send the user back to the form with a message like this: header('loaction:/index.php?msg'); On the index.php site, it loads ...
1
vote
0answers
423 views

Show select when checkbox is checked and validate select as required

I have added new fields in the configuration file for my form, like this: <?xml version="1.0" encoding="utf-8"?> <form> <fieldset> <field name="yes" type="checkbox" ...
2
votes
1answer
954 views

Debugging jQuery error - Uncaught TypeError: this._addClass is not a function

I'm having an issue with a specific page on a site I am helping with, i've spoken to the template developer and they are adamant that it is nothing to do with them and will not help (the page loads ok ...
0
votes
1answer
300 views

Scroll text within a div in a module

A little question here. A client wants a temporary notice placed on the site that scrolls horizontally inside a module. I have applied the basics of this fiddle, created a custom.js file that loads in ...
2
votes
2answers
499 views

Populate Joomla Calendar field by jQuery not working

I am trying to populate the calendar form field by using jQuery based on the values of other field. I am using JHTML::calendar for this. When the value is set via php everything works fine for me. But ...
2
votes
2answers
100 views

Some js files have temporary string at the end

I have some js files which have temporary string at the end, the problem is that jQuery is already loaded before so it cause issues. <script src="www.example.com/media/system/js/core.js?...
1
vote
1answer
1k views

Active menu items on page scroll with fullpage.js

I'm using fullpage.js with joomla 3.7.5. I try to put class active on my menu item, when I scroll to the specific section. According to the docs, to let fullPage.js know about the menu, I need to ...
1
vote
0answers
45 views

Problem styling a Joomla UI accordion on Joomla 2.5 page

I've successfully installed a jquery ui accordion on a joomla 2.5 page. Using Chrome development tools I can style it but these settings are lost on page reset. Checking out the jquery-ui.css file ...
1
vote
1answer
504 views

Jquery post request from other url

I have a custom.js with post request function setPrayerTime(cityId) { var request = $.ajax({ url: "http://site.com/mymodule/namaz_mob/prayer.v2.php", type: "POST", data: {...
0
votes
1answer
476 views

Jquery conflict using legacy template - is there a way to correct it?

I have a client who is trying to follow a Udemy course which uses a template from 2014 with the Jgive component. I have tried with different templates and the jQuery error does not appear, so it ...
1
vote
3answers
614 views

Jquery is not included in my component's head

I've just read this tutorial https://docs.joomla.org/J3.x:Developing_an_MVC_Component and finished my component (Joomla! 3.7). Now I realise that the site view doesn't contain the jquery link(s) in ...
2
votes
1answer
1k views

custom table display - help turning static html to dynamic php

I am trying to modify the list view of my Joomla component to display my table's data in a more user-friendly fashion. It currently simply displays all data in a regular table with columns and rows, ...
0
votes
2answers
812 views

Template loading jQuery twice, removing either versions breaks the site

I am working on the following site: https://www.jls-concept.fr/ The template is loading jQuery twice: - once from Joomla: https://www.jls-concept.fr/media/jui/js/jquery.min.js - and another time ...
0
votes
1answer
1k views

Using jQuery .load and console.log not working

I have a page that I'm loading through jQuery's .load. The page loads fine, but if I attempt to write to the console.log it does not work? Any thoughts on what I might be missing? If I use ...
3
votes
1answer
810 views

Send array from javascript to php by POST in Joomla 3.x

im trying to send an array from javascript to Joomla 3.x php file. var options = ['foo', 'bar']; $.post('index.php?option=component&view=componentview&Itemid=123&tmpl=component&...
1
vote
1answer
173 views

render/execute jasvscript code (which is in a php string) inside virtuemart JDispatcher eg: plgVmConfirmedOrder

I want to render/execute some javascript code written inside virtuemart JDispatcher eg: plgVmConfirmedOrder eg: $script='console.log("this is dummy script");jQuery.ajax({url:'',type:'post',success:...
0
votes
1answer
484 views

filter db by a single date - how to hack the standard calendar form field

I used component-creator.com to build a component. The component has a table with a date field and a frontend view which shows the contents of the table with a filter which can show the items between ...
1
vote
0answers
365 views

Modal rendering issue

I am using the following code to render a Modal window in Joomla! 3.6.5, inside administration: echo '<a href="#modal-test-modal" role="button" class="btn btn-success" data-toggle="modal">...
1
vote
2answers
271 views

best way to add third party js and css

I need to add a third party js and CSS to my template head. I'm getting Leverage browser caching and someone advised me to load the files locally. created a directory in root: assets/third-party/ ...
1
vote
1answer
51 views

Run Code From Joomla Article

Is it possible to run JQuery or JavaScript in a Joomla Article? I ask because I have tried just about every possible option I see on forums/interwebs and the data does not display as I desire.
1
vote
1answer
1k views

AJAX test module is not working. POST 404 error

I'm trying to create my own ajax module. When I submit the form I'm getting a 404 post error. Any idea what went wrong? This is what I have done so far. mod_ajax_test.xml <?xml version="1.0" ...
0
votes
1answer
59 views

SPpagebuilder accordion +Fetch as Google problem

Recently i purchase theme based on SP PageBuiler and description says it is included as Pro version. But SPpagebuilder forums required their subscription witch i of course don't have... And theme dev ...
0
votes
1answer
429 views

Using a JQuery function in a module?

I have customised a small text rotator using Jquery which I wish to use to rotate phones numbers in a module.It can be found here: http://jsfiddle.net/tovic/xaqgn/ I have tried embedding the function ...
1
vote
1answer
216 views

XML form related fields

I need to make a form with dependent fields. I have already tried a lot of options, but have not found the right way. As in the picture below, I'm trying to load a new XML file when you select an ...
3
votes
2answers
1k views

AJAX post not able to update database

How can I achieve a database insert using AJAX? I've created a module and I'm using AJAX post to insert a record into the database but seem to get a silent error and no database update; I know the ...