$(document).ready(function() {
  var href = [];

  $(".testLinks").each(function () {
    var something;
    something = $(this).attr("href");
    href.push(something);
  });
  
  for (var i = 0; i < href.length; i++) {
    $.get(href[i], function (data) {
      $(".onlyPrint").append(data);
    });
  }
});

@@ -42,16 +42,86 @@
  = %5B%5D;%0A%0A
+  function getCallBack(data) %7B%0A    $(%22.onlyPrint%22).append(data);%0A  %7D%0A%0A
   $(%22.te
@@ -145,24 +145,24 @@
 nction () %7B%0A
-
     var some
@@ -242,11 +242,9 @@
 %7D);%0A
-  
 %0A
+
   fo
@@ -304,73 +304,28 @@
 i%5D, 
-function (data) %7B%0A      $(%22.onlyPrint%22).append(data
+getCallBack
 );%0A
-  
   %7D
-);
 %0A  
-%7D
 %0A%7D);

test links html