CodeIgniter Forums
Adding image to ajax->link_to_remote. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Adding image to ajax->link_to_remote. (/showthread.php?tid=31244)



Adding image to ajax->link_to_remote. - El Forum - 06-11-2010

[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 ?


Adding image to ajax->link_to_remote. - El Forum - 06-21-2010

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