EPrints Technical Mailing List Archive

Message: #03376


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Latest Additions


Hi Enio,
Hi Sebastien,

thanks for your help and suggestions.

I was scared about the output of "latest_tool?n=5&mainonly=yes" when looking at it in a separate window. But it turns out, in the context of an already existing page it was exactly what I needed.

At the end, I solved it like this:

--- 8< ----------------------------

<h1 class="ep_tm_pagetitle" style="text-align: left">Latest Uploads</h1>
<div id="latest_uploads" style="margin-top: 1em"></div>

<script type="text/javascript">
<!--
jQuery(document).ready(function(){
  var onSuccess = function(html) {
    var target = jQuery("#latest_uploads");
    target.append(html);
  };
  var url = "cgi/latest_tool?n=5&mainonly=yes";
  jQuery.get(url, {}).done(onSuccess);
});
-->
</script>

--- 8< ----------------------------

Cheers,
Sebastian