Just using:
JS:
$(document).ready(function(){ $('a.pop').click(function() { var popID = $(this).attr('rel'); $.get('content.php', { ref:popID }, function(data) { $(popID+'Container').html(data); $(popID).dialog(); alert('Load was performed.'); }); return false;
HTML:
<div id="example" class="flora" title="This is my title"> I'm in a dialog! <div id="exampleContainer"></div> </div> <a href="#" id="clickingEvent" class="pop" rel="example">click to launch</a>
It is not tested, but as I see it should work ...
Garis m suero
source share