Welcome Guest, Not a member yet? Register   Sign In
TinyAjax callback function
#1

[eluser]snaggy[/eluser]
In TinyAjax (library for CI) you can set a callback function like this:

$this->tinyajax->exportFunction("create_user",array('username','password'),'reload',$this);

reload is the callback function, and it works. But when I pass the function variables through javascript, like this:

$this->tinyajax->exportFunction("delete_user",null,'reload',$this);

and in [removed]

onclick="delete_user('username')"

the callback function doesn't work anymore (the delete_user php function works and the user is deleted, but the javascript callback function in not called)

Anyone has any idea? Is this a TinyAjax bug? I'm not experienced enough to debug it if it is, though

hope I'll be able to solve this problem
bye


Messages In This Thread
TinyAjax callback function - by El Forum - 08-22-2007, 10:47 AM
TinyAjax callback function - by El Forum - 08-30-2007, 06:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB