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

[eluser]pegas[/eluser]
Hi.
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:
Code:
$absences="Manange";
$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 ?
#2

[eluser]pegas[/eluser]
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