-1

In joomla 2.5 module helper.php have a function

function hello() 
{ 
   echo " something my code";
}

In my tmpl/default.php have a text loadFunction.

echo " loadFunction";

I want, when someone click the text loadFunction then will be run function hello() . Like javascript onclick event system. How to do it in php ? Pls help

Masum
  • 407
  • 4
  • 9
  • 21

1 Answers1

0

If you are using Joomla I suppose you have included jQuery.

Definition and Usage

jQuery.ajax()

Joomla how to make an ajax call to an helper.php module

How to make an Ajax request in Joomla Component

How to load a custom html module using ajax-call joomla 2.5

Community
  • 1
  • 1
Techie
  • 44,706
  • 42
  • 157
  • 243