Today I work with joomsocial ofjoomla 2.5. Joomsocial is a big commercial component, but we sometime have to edit it to fit our require. I has written a new form that let users transfer point from one to one. I try to write new ajax function but it meet some errors.
Firstly, I found the instruction in file jooms.ajax.js to call a new ajax function:
And then I write a function
and add a function ajaxGetForm in profile.php of controller.
but it just displays nothing.
then, i turn on firebug, move to console, I read that error is function not found. I thought that there must be a place for define these function. Finally i found it jax.community.php, and I add this line $jaxFuncNames[] = 'profile,ajaxGetForm'; in line175.
Finally, It run well. Now I have new function ajax in joomsocial. It is so good for us to develop more for joomsocial.
Hope that this is helpful for you.
Responses
0 Respones to "How to add more ajax function in joomsocial?"
Post a Comment