Welcome Guest, Not a member yet? Register   Sign In
AJAX not working for me
#1

[eluser]Unknown[/eluser]
This is my code to trigger the ajax..

<td><a href="#">load->library('ajax');

$this->ajax->link_to_remote($row->project_name, array('url' => 'index.php/admin_cont/ajaxtake', 'update' => 'data_div'));

?&gt;"

style="text-decoration:none"><strong>&lt;?php echo substr($row->project_name,0,11).".."; ?&gt;&nbsp;</strong></a></td>


here "admin_con" is my controller page and ajaxtake is function in "admin_con" which display a message "hi".

data_div the the place where i want to show the result..

but it is not working.. somebody please help me

Thanks in advance..

Tismon
#2

[eluser]InsiteFX[/eluser]
Look here!

CodeIgniter and Ajax

Enjoy
InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB