Welcome Guest, Not a member yet? Register   Sign In
Adding image to ajax->link_to_remote.

I I want to create a link_to_remote and i want it to show an image. I do not know how to integrate the img tag in the array of link to remote.

My link so far is:
$data[content] =$this->ajax->link_to_remote($absences,array('url'=>'details/'.$value['id_etudiant'].'/'.$value['nom'].'_'.$value['prenom'].'','update'=>'detailsAbs','loading'=>'cursor_wait();','complete'=>'cursor_clear();'));

Cursor wait and cursos clear are javascript functions to add some style to de mouse while the request does it's thing.

So can anyone help ?

I tried to put the <img> tag in the name field of the link and it works.
Problem solved

Theme © iAndrew 2016 - Forum software by © MyBB