A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1
vote
1answer
32 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 ...
1
vote
1answer
24 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
114 views

Drag and Drop at the frontend does not save

in my Joomla 3.6-Component I would like to include a drag and drop ordering at the frontend. Following this ... Adding drag-n-drop ordering in component ... it looks like it should and I can move ...
1
vote
3answers
684 views

Joomla calendar popup does not appear when loaded by ajax

I'm loading a calendar field via jquery ajax. When I click the calendar button nothing happens. The calendar popup is not showing. in model.php $tr = "<td>" . JHTML::_('calendar', '2015-09-09'...
3
votes
3answers
508 views

How to check JSESSION in javascript

I am developing a component and I use ajax calls to do some tasks in the frontend. I have come to a problem when the session is expires and I don't want to use keepalive to solve it. In the frontend ...
0
votes
2answers
516 views

Ajax request 303 redirect on a multilingual website

I have an ajax task to return a form token from my controller for use in ajax pages, so that subsequent ajax requests will have a token. It looks like this in the code: JURI::root().'index.php?option=...
3
votes
2answers
513 views

how to refresh Joomla token in form by AJAX

I've got a website that uses an AJAX call to login a user. To secure this, I've added a token to the login form - https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms the problem is that, ...
5
votes
1answer
1k views

Joomla token with ajax request

I've built a module that requests some data from the server via an ajax request. It includes the Joomla token to validate the session. An odd thing is happening-- when I open Chrome and load the page,...
0
votes
1answer
98 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', //...
0
votes
1answer
26 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 ...
0
votes
0answers
29 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="...
1
vote
2answers
82 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 ...
2
votes
2answers
31 views

Searching for users and tagging their name in a post

I've developed a Shoutbox extension and would like to implement a feature, by which you can tag a user in a shout (same concept as tagging a user on JSE) using the @ symbol and then the user's name. ...
0
votes
1answer
91 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 ...
3
votes
1answer
2k views

Get/set userstate and session variables not working inside for loop

I have a long loading for loop inside a function in one of my model in my Joomla component. In order to gauge the progress, I wanted to make a progress bar using ajax and javascript as the request is ...
1
vote
1answer
312 views

Problems with ajax call in component

I am developing a joomla component. I added a drag and drop uploader with ajax. When a file is uploaded, a confirmation-mail should be sent. I get the right item of the database with $id = $app->...
2
votes
3answers
419 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" ...
5
votes
2answers
1k views

What is best way to implement ajax infinite scroll to a custom component list view?

What is the recommended way of overriding standard jPagination class to achieve ajax infinite scroll on a joomla! 3 custom component list view? Ideally I would like to push the browser state and ...
1
vote
1answer
2k views

com_Ajax - send POST Request

I am new to JavaScript. I'm creating my module. I'm trying to send data from an html form. I Can not use com_ajax...I create new class in helper.php. public static function getAjax() { jimport('...
4
votes
1answer
771 views

AJAX post request not sending data

I am working on a Joomla 3.8 website on my localhost, hosted by MAMP 5.1. I am modifying the component J2Store, which is built on F0F. Please bear with me because I'm still learning a lot of these ...
2
votes
2answers
4k views

Simple AJAX call to a component giving 403 (Forbidden) error

Disclaimer: I'm pretty new to Joomla and web-development, so I probably am making a dumb beginner mistake. So far I've worked through much of the MVC tutorial in the Joomla documentation, and I've ...
0
votes
1answer
77 views

How do I migrate AJAX interface from 1.5 to 3.x for mobile App

I'm updating a website selling online services that has a complimentary App acting as a mobile front end to the Joomla v1.5 CMS. The App communicates via a component (com_mobile) using JSON data ...
2
votes
2answers
198 views

Run function in com_content with ajax - doesn't call it correctly

I've been following this tutorial to make an AJAX login form: http://www.mysite4u.net/joomla-articles/jquery-ajax-joomla-login.html But I can't get it to work. The ajax call doesn't work. It gives ...
0
votes
2answers
1k views

Uncaught TypeError: Cannot read property 'HTML' of undefined

I'm pulling a module from our Joomla site to host onto our local servers and put back into Joomla as an iframe. I've gotten the source code, set up the database to mirror that of the Joomla. When I ...
2
votes
3answers
3k views

Sending POST data within module - AJAX

Requirements for this task is - I can NOT use any type of components (com_ajax is out of the options list) GOAL: send post data if checkboxes are 'checked' using ajax within custom module. Is my ...
1
vote
2answers
304 views

How to build valid json object for a component's ajax response?

I've set up an Ajax call in my component. I seem to have got the initial call, the controller, the data model is working because when I make the JavaScript call I'm showing this in the code inspector ...
1
vote
1answer
136 views

Custom component with Ajax filter and SEO

I started the development of my first Joomla component a few months ago but I needed to stop, because other projects. Now I'm back to work. The thing is, my component is displaying a list of items ...
3
votes
1answer
447 views

Get date value with jinput

In my form I have selecting date with datetimepicker which i'm using only date picker. I need to get the selected date value to do some calculation in php through ajax. Here is my code but the ...
0
votes
1answer
167 views

Get ajax post data from another module in plugin

is it possible to catch ajax post data from another module in my plugin? I'm using SimpleForm2 https://allforjoomla.ru/extensions/mod-simpleform2 So this module creates a form and pass post data via ...
2
votes
1answer
312 views

Reload admin form after save field in database

In a custom component I need the user in the edit view of an item to be able to load a field in the editor field through modal and ajax. The case is the user can fill an editor field from a text ...
1
vote
2answers
1k views

Joomla save function with ajax update

I would like to call a controller function and after that I would like to update my view with an ajax call. Therefore I call my controller function from an ajax script using this url: url: "index....
5
votes
2answers
904 views

Rapid Ajax calls causing some MySQL queries to be ignored

I am currently working on a Joomla website on a Unix server. There are no users connected at the moment because I'm the only one who can access it (so no heavy traffic). During testing, I proceed to ...
1
vote
0answers
286 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, ...
3
votes
3answers
277 views

How to keep data in Joomla module helper class

I've created a module that connects to the database and retrieves some data using $data = $db->loadRowList(); inside one of the member functions of the module helper class. Is there a way I can ...
0
votes
2answers
4k views

JSON.parse: unexpected non-whitespace character after JSON data

I want to use jQuery.ajax for sending new mark(about article) to database and changind number of marks on page. But I receive bad AJAX response from server. {"likes":"40","dislikes":"29"}{"success":...
1
vote
0answers
306 views

joomla make a ajax request for another php file

Excuse me for my English. I'm a newbie in joomla. I make a phone book component and i wanna add a Ajax pagination. I've got Jquery function load_data where i put a url to my php page. And this is ...
3
votes
2answers
2k views

Error: 404 Category not found error with custom PHP script

For some time now I have been working with Joomla, and now I am working with a version 3.1.5. I often make my own PHP scripts to use for AJAX callbacks and other things. I put them in a folder ...
1
vote
1answer
328 views

JFactory::getApplication()->input->post->get() prunes empty sub arrays/objects

I am sending a POST ajax call like this: var request = { option : 'com_ajax', module : 'mod_test', // to target: mod_test method : 'Test', // to target: function TestAjax in ...
4
votes
2answers
968 views

How to get Ajax response within a Module?

I am coding my first experimental administrator/module so that I can understand how Joomla performs ajax calls. I only need to refresh the content of my module with some server info and a couple of ...
3
votes
3answers
516 views

Ajax error when attempting component updates

I am having a couple of issues with a Joomla 3.6 site that I maintain. Issue 1 is with the Joomla update component. When the update attempts to run it gets an Ajax alert error, and the following ...
2
votes
1answer
148 views

Accessing ajax/REST based php api

Someone built a site using joomla and third party plugin RS Forms Pro and created a page where a client could configure and purchase a product (via stripe). But they have asked me to write some ...
2
votes
2answers
2k views

How to show items only using AJAX “Load More” button instead of pagination in category blog

In category blog by default ten items are visible. I would like to replace a standard pagination with "Load more" button, so that clicking on it would show ten more items each time. There is a blog ...
2
votes
4answers
2k views

How to retrieve data from the Joomla DB via jQuery.ajax without controller

I need to retrieve some data from #__virtuemart_order_histories in templates/active_tmpl/html/com_virtuemart/orders/details_history.php via jQuery.ajax. I know that I can do it with a new &task= ...
1
vote
1answer
440 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: {...
4
votes
1answer
792 views

Joomla Ajax Module getAjax() method not found

I have no experience with Ajax and little to no experience with Joomla. I've managed to create my own Joomla modules with no problem. Today I tried to use Ajax in one of my modules but I am getting an ...
40
votes
6answers
31k views

What is the proper way to make an AJAX call in component?

I am developing a custom component for Joomla! 3.x and want to make an AJAX call inside it to retrieve some data. What is the proper way to do it?
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 ...
1
vote
1answer
969 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" ...
2
votes
1answer
341 views

Custom Module delete from database with AJAX

I have been trying to get my head around Joomla's com_ajax component for some time with a view to using it in my custom module. The module displays data from a component. One of the form fields is of ...