Javascript AJAX call

How to call a CF page in a different page group using AJAX.

Overview

The issue was using an incorrect URL structure for the AJAX call.
Use the main form page URL and append the target page alias with the parameters `&chronopage=ajax-page-name&output=ajax`.

Answered
ChronoForms v8
ki kittisak 19 Jul, 2025

Hi Max,

   In my form, I have use Javascript to make a table which some cell can be clicked for show a dropdown menu. I need to do an AJAX call to do some job (such as : get parameters for linked menu). I have some questions.

1. Can I use PHP action that created in the other page group, for AJAX to call (like AJAX Call in advance listener)?

2. What is URL for AJAX to call ?      

   For this question : I make a form that has an main page alias "ajax-v2" and the other page group that have PHP action, with alias "ajax_handler". I had try to use this url 'https://xxxxxxxx.com/administrator/index.php?option=com_chronoforms8&view=form&chronoform=ajax-v2&chronopage=ajax_handler&tvout=view'. It's not work so I am not sure what the right url.

Regards,

Kittisak   

Max_admin Max_admin 20 Jul, 2025
Answer
1 Likes

Hi Kittisak

  1. Yes, you can call a page in a different page group using AJAX
  2. The URL should be the same url to your form page + 
    &chronopage=ajax-page-name&output=ajax // where ajax-page-name is the page alias/name
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply