Questions tagged [ajax]

AJAX (Asynchronous JavaScript and XML) is a technique for creating seamless interactive websites via asynchronous data exchange between client and server. AJAX facilitates communication with the server or partial page updates without a traditional page refresh.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

how to update item by using ajax on custom component joomla 4

Dears My component was a bit old. So I started to do it again on joomla 4. I have been looking for a few days, how to update or create data items by using Ajax in joomla 4. i found a lot of feedback ...
Nicolas AZHAR's user avatar
0 votes
0 answers
31 views

Joomla 4 AJAX request and Cyrillic characters

There is an input field of type text - pib_input I am sending to the Ajax server let pib_input = $('#pib_input').val(); console.log(pib_input); $.ajax({ data: { [token]: "1&...
antarey's user avatar
  • 35
0 votes
0 answers
47 views

How to resolve the Internal Server Error with my custom components calendar in Joomla 4?

I try to make a custom calendar in my custom component in Joomla 4. For that I write a code who connect to a database and retrieve the data. For that I have 3 files : default.php, ...
Sephirah's user avatar
0 votes
0 answers
28 views

Submit an form with WYSIWYG Editors via AJAX

I'm submitting a standard Joomla form via AJAX. Only the apply task is submitted via AJAX: $js = ' Joomla.submitbutton = function (task) { if (task != "cancel") { if (...
maidan's user avatar
  • 383
0 votes
0 answers
33 views

Path to pictures in Joomla site changed to ajax path

I created a website with Joomla and YooTheme. All of a sudden, none of the pictures show anymore. What used to be path [domainname]/images/[imagename].jpg is now [domainname]/de/component/ajax/?p=...
tobre's user avatar
  • 101
1 vote
1 answer
29 views

No response from Joomla plugin that should receive AJAX calls

I followed this guide step by step and I've just created a plugin that should elaborate AJAX calls received from a form in the front-end, so that the data sent by every user will be structured and ...
smarmolena's user avatar
2 votes
1 answer
358 views

Use Ajax to refresh available options

I'm struggling with coding an ajax refresh of options in a select list based on what's already selected in the previous field. Scenario is I get a list of positions and each position one or many ...
Glenn Arkell's user avatar
1 vote
2 answers
120 views

Joomla plugin ajax request / class extend

I have created a "custom" authentication plugin and inside of it there is a function (onAjaxMyfunction) that is called from a module through com_ajax. The call "url" looks like ...
anthi_p's user avatar
  • 57
0 votes
1 answer
49 views

How to integrate inbuilt joomla ajax

As joomla 3x has inbuilt ajax instead of calling an external script, can joomla inbuilt ajax system be used to fetch data from table without refreshing page I mean if there is a table having company ...
Ruchika's user avatar
  • 415
1 vote
0 answers
144 views

Joomla 4 ajax php file in component, $application missing LanguageFactoryInterface::class

In Joomla4 i am creating a ajax.php file for getting json results // Boot the DI container $container = \Joomla\CMS\Factory::getContainer(); $container->alias('session.web', 'session.web.site') ...
Sabin's user avatar
  • 21
0 votes
1 answer
102 views

How to return data from 2 tables to one table using a select field

My tables: dzialki +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+---...
Dariusz Tokarz's user avatar
1 vote
0 answers
27 views

Retrieving state variables using Ajax in 3.10.4

I have a site which displays a directory of registered users on the frontend. I've allowed users to select topics of interests when they're registering. In the directory they then can search by names ...
chavab_1's user avatar
  • 195
2 votes
1 answer
272 views

Invalid controller class from custom component ajax call to json method

I have an existing J3 component admin view which fires off a Javascript Ajax call to a Json controller and fetches back data which I then incorporate into that view. I'm trying to replicate how I've ...
Grant Hood's user avatar
2 votes
2 answers
350 views

Integrate external news content API into com_content articles

My client is looking to integrate news content coming from an external API into their Joomla website. The API is in the JSON format and includes multiple fields like title, summary, date, and full ...
Mike Hermary's user avatar
1 vote
1 answer
785 views

How to output just raw json from my Joomla controller for Ajax requests?

I want to create a Joomla json response for an Ajax request. So, I followed the instructions here: JSON Responses with JResponseJson I implement the following code in my controller: use \Joomla\CMS\...
framontb's user avatar
  • 237
4 votes
2 answers
1k views

Adding ajax call in a module for Joomla 4

I'm trying to add an ajax call to Article Latest module. I added the code below to /modules/mod_articles_latest/src/Helper/ArticlesLatestHelper.php public static function getAjax() { $data ...
webchun's user avatar
  • 2,418
1 vote
1 answer
149 views

Ajax call from module default.php file in order to fulfill a sql query

I have a fully working module in Joomla, but I'm struggling with the last piece which is sending a value from Javascript in my default.php file into the helper file, where it will be used in a sql ...
Geoff_S's user avatar
  • 125
1 vote
0 answers
71 views

Simple Ajax Request Without Component/Module/Plugin

I am trying to create a simple login popup. From the shared image of UI, you can see, a login button(top right) which opens a popup for login form. https://prnt.sc/1mc5ppq Now, I want to pass the ...
Alaksandar Jesus Gene's user avatar
0 votes
1 answer
165 views

Get html code from an internal link in a module

I need to get the html code from the joomla internal link, and transfer the code to the module My code default.php <?php defined( '_JEXEC' ) or die; ?> <div class="container" id=...
antarey's user avatar
  • 35
1 vote
1 answer
194 views

Submitting a form in pure JS

How to get the formDate in the controller? my HTML <form id="myform" > <input type="number" name="jform[option][1]"> <input type="number" ...
MaXX's user avatar
  • 161
1 vote
2 answers
485 views

Controller method does not get data passed through jQuery.ajax()

I am developing a Joomla component. In javascript I use jQuery.ajax() for making a (php) controller method put data (from javascript) into the database. However, after installing the component on one ...
Herman's user avatar
  • 111
0 votes
1 answer
483 views

Call a function using AJAX from a Joomla-View to retrieve data from the DB

i have coded a little component to administrate books for a histroy club. I added some views to deiplay different tables with book date. So far everythign works. In fact the DB access and the building ...
Andreas Soraru's user avatar
2 votes
3 answers
171 views

Joomla Ajax in Module from Administrator not work

I have a module that creates thumbnails from the main image and over time the hosting fills with images, for that reason I want to add a maintenance button that deletes the previous images. It is from ...
Leoalv's user avatar
  • 167
2 votes
2 answers
631 views

What is url for calling task in controller for Joomla 4?

This is my ajax query for calling a task in the controller (it works for Joomla 3 but doesn't work for Joomla 4): $.ajax({ type: "POST", url: "index.php?option=com_scrib&...
waxman's user avatar
  • 21
1 vote
1 answer
79 views

Use com_ajax with a custom field

I've created a custom form field for templates, which is meant to handle SCSS compile. In short, I've opened an issue on Github where I had a little chat with one of the Joomla devs about wasm compile....
thednp's user avatar
  • 405
0 votes
1 answer
140 views

Does an AJAX request to a PHP script inherit session context

From JavaScript loaded via a static HTML5 file [loaded from a Joomla page element's onClick event and window.open()], does an AJAX request to a PHP script inherit the session context such that ...
Designs Edge's user avatar
1 vote
1 answer
82 views

Techjoomla API using same ACL as site

First Context: I am making a JS application that needs to call an api. The application is a form full of multiple choice select elements. Depending on the selected elements data is sent to the api. ...
Huw Evans's user avatar
  • 371
2 votes
1 answer
335 views

Ajax post request with pure javascript, no jquery

I'm using fabrik to develop some applications, it's great. However I have the need to use ajax with it now, I know how to use it and I already have everything set up, but I need to fix the javascript ...
Logista's user avatar
  • 31
1 vote
0 answers
42 views

Using Ajax in Joomla articles to immediately work with input values in PHP

I'm trying to create a simple calendar utilizing my knowledge in PHP and MySQL, but I want to have it as instant as possible. I'm using an article and the plugin sourcerer. At first I created a simple ...
Logista's user avatar
  • 31
1 vote
1 answer
767 views

TinyMCE editor loaded through AJAX not working

I've built a form that calls for an editor to be loaded through AJAX, but when I insert the fetched contents I get only a <textarea>. If I hit the toggle editor button, then the editor gets ...
Chaosxmk's user avatar
  • 338
0 votes
2 answers
89 views

Leaflet markers in joomla are not removed

I am working on a project and I want to remove the markers from a leaflet map that were added to the map previously. The problem is that when I want to remove the markers that were added to the map, ...
Marcel Stiube's user avatar
0 votes
1 answer
53 views

Own Module - Integrate ACL Check (in Ajax Call)

I'm currently programming a module that contains several Ajax calls, some of them with Add / update & Delete requests in the DB. Now I am thinking about the fact that it will be necessary to check ...
Marco's user avatar
  • 551
1 vote
1 answer
201 views

How to get user object in Ajax call

I want to access the currently logged in user in my Helper function using AJAX. function editUser(){ runAjax('editUser',"one"); } function runAjax(type,regHtml){ request = { '...
user1616338's user avatar
2 votes
0 answers
148 views

How to get an AJAX call in component's administrator side

I added a component to my site and it accesses my DB via an AJAX call. In my 'tmpl' folder, I have a 'default.php' file which makes an AJAX call that is received by view.json.php just outside that ...
LaioZatt's user avatar
1 vote
1 answer
508 views

Getting module parameters in AJAX call using module id

I have set up an AJAX call in my module which works fine. I want to get the module parameters when I make the ajax call. So I'm doing this $app = JFactory::getApplication(); $module = JModuleHelper::...
user1616338's user avatar
0 votes
1 answer
266 views

not able to do ajax request in my custom component i'm not working in mvc right now

if i go with upload my php file where data is being sent and from where data is getting stored (that php file) stored into server http://ip/includes/js_new/update_contact.php then it shows 500 ...
Manoj Yadav's user avatar
2 votes
1 answer
1k 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 ...
Marco's user avatar
  • 551
1 vote
1 answer
58 views

Controller Joomla - Output Class construct for color css style

I'm trying to understand php class into Joomla and construct output. I've created this class into my controller.php: class ColorStyle { public $OpenJs = "<script>"; public $...
Andrea Suriani's user avatar
2 votes
2 answers
886 views

Js/Ajax function into a Js file doesn't work

I'm not a programmer (This is my hobby, but I like to learn new things). :) I'm developing a JComponent on my side, and I need to integrate an Ajax Call in order to check something. But I have this ...
Andrea Suriani's user avatar
0 votes
2 answers
553 views

Ajax Request returning the whole page not a specifc value

I am trying to make an AJAX Request to my function in my controller and it works, however, it returns me the whole page which i don't want. I have tried encoding it with json but no success i also ...
Thiago Guimarães's user avatar
0 votes
0 answers
131 views

Submit an XML form via AJAX using Joomla.submitbutton/form

I know there are a few questions regarding how to submit forms with AJAX but i could not figure out how to do it in my case. Should it be something like this? $("#adminForm" ).submit(function( ...
Thiago Guimarães's user avatar
1 vote
1 answer
137 views

Connecting module with com_ajax triggers request on menu item one level up

I've got a custom module which makes use of com_ajax to return values without refreshing the page. In my helper file I'm struggling to get the module parameters within the AJAX request and it looks ...
essbaxter's user avatar
1 vote
1 answer
43 views

Building a new module that loads articles not adding slashes in front of images

i am currently building a new module that loads joomla articles via ajax. During the final tests I noticed that image links are (relative links) not handled correctly. If an image is added to an ...
Marco's user avatar
  • 551
0 votes
1 answer
158 views

Ajax Call: Problem with filter in Article & Articles Model in Module Context

I currently have a problem with an ajax call in my new module. the filters are not used. Here is an extract of the relevant lines: $articleid = $data_decoded->articleid; // Get an instance of ...
Marco's user avatar
  • 551
0 votes
1 answer
47 views

Module creation reusing functions

I have a module that uses comAjax . Default uses the standard way of calling: 'option' : 'com_ajax', 'module' : 'available_stock', This works fine and in the module calls the relevant ajax function ...
user1616338's user avatar
0 votes
0 answers
82 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="...
Дмитрий Безруков's user avatar
1 vote
2 answers
399 views

Call com_ajax from module backend

To create thumbnails & cache files, I have to access my already created Ajax Functions inside my helper.php file. I'm already able to call the functions within the frontend (button that is ...
Marco's user avatar
  • 551
0 votes
1 answer
213 views

How to get data from core components and modules formatted as JSON?

As I would like to use a front-end JavaScript framework within Joomla I would like to know what's an efficient and maintainable, structured way of accessing data from core components (such as ...
Wieger's user avatar
  • 253
3 votes
3 answers
1k views

How to execute an ajax script to update form fields in an .xml file rendered by Akeeba FOF?

I would like to populate the "Owner" select option list by SELECTing the owner column from the #__gscrm_accounts table WHERE the gscrm_account_id (primary key) is the selected "Person or Business" ...
mickmackusa's user avatar
  • 4,781
0 votes
1 answer
128 views

How to post checkout data to component using Ajax?

$.ajax({ url: Joomla.getOptions('system.paths').base+'/index.php?option=mypage&view=cartcheckout&task=cartcheckout_autoSave&tmpl=component&stepId='+stepId, type: 'POST', //...
askerman's user avatar