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 [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.

0
votes
0answers
12 views

What is the best way to verify user through Joomla Ajax

How can I verify Username and Password using Joomla! default login module though Ajax request? I don't need Ajax login, What I need is- Check entered username and password on a Button click within ...
4
votes
1answer
81 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
83 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 ...
3
votes
3answers
203 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 ...
-1
votes
2answers
72 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
2answers
145 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, ...
2
votes
2answers
93 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 ...
1
vote
2answers
71 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 ...
2
votes
1answer
70 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
0answers
165 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, ...
1
vote
0answers
159 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 ...
1
vote
1answer
211 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
347 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 ...
0
votes
0answers
38 views

Form serialize() can not get value of editor

I'm using JCE Editor, when i'm using form serialize() to get data for ajax, but it can not get value of editor, it null. I added: beforeSerialize: function() { jQuery('.wf-editor-...
3
votes
1answer
78 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 ...
0
votes
1answer
81 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 ...
0
votes
2answers
2k 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
1answer
99 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
3answers
166 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 ...
5
votes
1answer
412 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 ...
2
votes
1answer
237 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 ...
2
votes
1answer
329 views

Ajax post to plugin works in localhost environement, but not on hosted server

I have developed a website for a local radio station and they asked if it was possible to track the number of times the podcasts were either played or downloaded. I am using the mp3 Browser Fork ...
1
vote
1answer
114 views

Redirect on extension plugin with onExtensionBeforeInstall

i've created an extension plugin and i'am having issue to redirect on the trigger onExtensionBeforeInstall Here is my code : class plgExtensionExample extends JPlugin{ function ...
1
vote
1answer
322 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
1k 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('...
2
votes
2answers
933 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
3answers
1k 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 ...
3
votes
3answers
2k views

Using AJAX in a custom module - how to do it?

I think this might be useful in future for many others. First of all, I know that there's com_ajax for this kind of a job, but I do not want to use it. Is there an alternative? What I got: default....
4
votes
1answer
334 views

Chosen on AJAX content

I am working on a site (custom component and template) where I want some links to have their content shown in a popup. The popup itself seems to work fine, but I noticed the select boxes aren't ...
1
vote
1answer
561 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
79 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 ...
3
votes
2answers
686 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
207 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->...
3
votes
3answers
327 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 ...
0
votes
1answer
72 views

Restricted direct access creates problems passing references between files

Context (Long Story Short): I am using a PHP script and the $_POST variable to handle certain ajax POST requests from a view template. It needs access to database connector classes which can be ...
1
vote
0answers
153 views

Joomla 3.5.1 - Ajax with PHP not send email

I'm having some problems with the action of an Ajax form. Here is the Javascript: <script type="text/javascript"> var $j = jQuery.noConflict(); $j(document).ready(function() { $j(...
2
votes
2answers
415 views

Making an ajax-based template?

Is there any proper way to make an AJAX engine for a theme in the Joomla? I want all of my navigation happen without the page refresh, or in other words, thorough AJAX calls. Should I rely on ...
1
vote
2answers
192 views

Calculate end date based on start date and duration

My goal is to calculate and show end date based on my start date by date picker and doprdown to choose number of weeks. I have Jquery datetimepicker http://xdsoft.net/jqplugins/datetimepicker/ to ...
2
votes
3answers
643 views

Ajax call returns html baggage

I have read similar questions on this site, but none that I can find matches my problem closely. I manage a joomla 3.5.1 site and I wrote a javascript that, when I press a button, sends a mail by ...
3
votes
1answer
344 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 ...
1
vote
1answer
529 views

Show Form Field if AJAX-response is false

I would like to extend my component with some interaction. For this purpose I try to show fields in a form only if necessary. This works fine with showon-declarations in my form.xml. Now I would like ...
2
votes
2answers
829 views

Call php function in backend of module

I am trying to call a php function from the backend of a module (I'm using a custom form field). com_ajax does not work because it pulls the current menu item, which doesn't exist since it is not ...
1
vote
1answer
19 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. ...
1
vote
1answer
651 views

Passing form value using Ajax

Referring to my previous Question jQuery Ajax for three drop down On page1) I will select dropdown Building (populating from db) and dropdown Floor (by Ajax call) then url will pass like: index....
0
votes
1answer
728 views

jQuery Ajax for three drop down

Hi i have three dropdown, The first one populating value from database, Second and third will get their values by ajax call. And the problem is at first loading of the page when i'm selecting the ...
0
votes
1answer
436 views

Filtering dropdown form with jquery.ajax

i have two dropdown getting value from database: Table_Buildings |id|---|building_name| Table_Floors |id|---|Floor_name|---|building(Foreign key to table_Buildings)| and in my form Dropdown: ...
1
vote
1answer
319 views

Ajax multiple module instances

I have created a custom module (test) that has two buttons - a forward and a backward button. When clicked, the Joomla Ajax Interface is used to call the getAjax() function of helper.php. This works ...
2
votes
1answer
986 views

Submit to RSform! pro from anywhere using jQuery ajax

I'm in the process of making an administration app for Joomla RSform! pro. The app is hosted as an article so it is on the same domain as Joomla itself. I need to move or copy a submission from one ...
0
votes
0answers
57 views

Filter input field on featured article meny type page

I'm not sure how can I show ajax filter field on Featured items menu type, same like we have on Category list menu type. Reason for this is that Joomla don't allow option to show items on Category ...
0
votes
1answer
144 views

Ajax in custom handler on client side

Im making custom formular and for one field I need a username ajax validation. I prepared a custom handler in jQuery: document.formvalidator.setHandler('usernamecheck', function(value) { jQuery("...