When trying to initiate an AJAX call on the project brief page by adding a JavaScript file, I encountered some issues. My goal is to display additional information along with the existing project brief. I included a JavaScript file in a custom module and followed the steps outlined below. Can someone please review my approach and let me know if I missed anything?
The code snippet I used for making the AJAX call is as follows:
$.ajax(
{
type: "post",
url: "index.php?path_info=projectfieldsextra",
'data' : { 'client_value' : 178},
success: function(el)
{
alert(el);
return false;
//$("#project").html(el);
}
});
In the controller, I created a function called get_project_information() and in the module definition class, I set up a route like this:
Router::map('projectfieldsextra', 'projectfieldsextra', array('controller' => 'project_fields', 'action' => 'get_project_information'));
However, when making the call, I ran into the following error message:
Call to a member function isInlineCall() on a non-object in /opt/lampp/htdocs/activecollab/activecollab/4.0.13/angie/frameworks/environment/controllers/FwApplicationController.class.php on line 211
If anyone could assist me with this issue, that would be greatly appreciated.
Thank you, Jayesh