Java Ninja Chronicles By Norris Shelton

Things I learned in the pursuit of code

$('.detail').click( function() {
       $dialog.dialog({title:$(this).attr('title')});
       $dialog.html('<div class="loading-center" />');
       $dialog.dialog('open');    
       $.get( $(this).attr('href'), function(data) {
           $dialog.html(data);
       });
       return false;
   });
<a class="detail" title="Smith, Tara (BHE)" href="/intranet-templating/employeedir/employeedetails.do?userId=221014">Smith, Tara (BHE)</a>

class=”detail” is how the links are selected

November 29th, 2010

Posted In: JQuery

Tags: , , , ,

Leave a Comment

LinkedIn Auto Publish Powered By : XYZScripts.com