Skip to Content

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

This question has been flagged
As a moderator, you can either validate or reject this answer.
Accept Reject
71 Views

1. Remain ur ajax url, just add one more parameter called 'task'

https://sys.dreamztech.com.my/index.php?option=com_ajax&plugin=odooinceandreceipt&format=json&task=clearSentValue


2. After that, in ur ajax, u need create a code to retrieve 'task' parameter from url

$task = JFactory::getApplication()->input->getCmd('task', '');


3. If retrieve the correct parameter, then call the function run

if ($task === 'clearSentValue') {

return $this->clearSentValue();

}


This skill let u able to call specific function from ur ajax

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Related Posts Replies Views Activity
0
Mar 25
80
0
Feb 25
74
0
Feb 25
113
0
Feb 25
110
0
Mar 24
84