$('a.thickbox').livequery(function(){
 $this = $(this);
 $img = $('img',$this).attr("src");
 $('<img src="'+$img+'"/>').appendTo('#modalWindow');
 $('#modalWindow').jqm().jqmShow();
});

should work.

-- David

Alexandre Plennevaux schreef:
hi!
i have a node that at some point gets feed via ajax with an image that, when clicked, should launch itself fullscale inside a jqModal window. I thought using livequery to update the behaviours but i'm puzzled, because jqModal does not bind itself to the link launching the modal, but to the modal container itself. your help would be much appreciated. here is the code that i tried: $('a.thickbox').livequery(function(){
  $this = $(this);
  $img = $('img',$this).attr("src");
  $('<img src="'+$img+'"/>').appendTo('#modalWindow');
  $('#modalWindow').jqm({trigger:'a.thickbox'});
 });
the html is: <p class="skinBackground" style="margin:auto 0">
       <a href="path/to/image.jpg" title="" class="thickbox">
<img src="path/to/image.jpg" style="width:320px" id="currentImage"/>
       </a>
      </p>

Alexandre Ple

thanks mates!

Alexandre


Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.485 / Base de données virus: 269.13.18/1007 - Date: 13/09/2007 21:48

------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.18/1007 - Release Date: 13/09/2007 21:48


--
David Duymelinck
________________
[EMAIL PROTECTED]

Reply via email to