Changes

Jump to: navigation, search

JQuery HTML Updater

226 bytes removed, 20:36, 6 May 2010
Complete Example
== Complete Example ==
For the purpose of this example, to avoid confusion, we use JHU Umlaut installation URLs. You would want to replace with URLs to your own Umlaut of course.
<pre>
<head>
<script type="text/javascript" src="http://findit.library.jhu.edu$UMLAUT_BASE/javascripts/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>
<script type="text/javascript" src="http://findit.library.jhu.edu$UMLAUT_BASE/javascripts/jquery/umlaut/update_html.js"></script>
<script type="text/javascript" src="http://findit.library.jhu.edu$UMLAUT_BASE/js_helper/loader"></script>
<script type="text/javascript">
var openurl_link = $("a.openurl_link").attr("href");
var ctx_object_kev = openurl_link.substring( openurl_link.indexOf("?") + 1);
var updater = new Umlaut.HtmlUpdater("http://findit.library.jhu.edu" $UMLAUT_BASE , ctx_object_kev );
updater.add_section_target({ umlaut_section_id: "fulltext", selector:".my_full_text" , before_update: function(html, count) { return (count == 0); }});

Navigation menu