Created
April 19, 2010 15:26
-
-
Save gdakram/371154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="text-align:center"> | |
<a href="http://atlantis.crlt.indiana.edu/main/infoItem/listInfoItems.pl?type=update" class="update_link" title="updatelink" style="display:none";> | |
<img src="http://atlantis.crlt.indiana.edu/images/pda/skins/default/update.gif" | |
onmouseover="this.src = 'http://atlantis.crlt.indiana.edu/images/pda/skins/default/update_over.gif';" | |
onmouseout="this.src = 'http://atlantis.crlt.indiana.edu/images/pda/skins/default/update.gif';" | |
style="border:none;" | |
/> | |
</a> | |
</div> | |
<script type="text/javascript"> | |
//--<![CDATA[ | |
$j("a.update_link").bind("click",function(){ | |
var url = "http://atlantis.crlt.indiana.edu/logon/openwin.pl"; | |
url += "?session=" + CookieManager.read("QaAuth_QaCookie"); | |
url += "&target=" + $j(this).attr("href"); | |
window.open(url, $j(this).attr("title"), 'scrollbars=1, resizable=yes, width=600, height=375'); | |
return false; | |
}); | |
$j("document").ready(function(){ | |
$j.ajax({ | |
url: "/main/homearea/quester_info_xml.pl", | |
dataType : "xml", | |
type: "GET", | |
success: function(xml) { | |
var updates_available = $j(xml).find("updates_available:first").text(); | |
if (updates_available > 0) { | |
$("a.update_link").show(); | |
} | |
} | |
}); | |
}); | |
//--]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment