Difference: JavaScript (5 vs. 6)

Revision 628 Oct 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/XIISNHCT/JavaScript/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){

  $("#conteudo [href*='http://']").attr("target", "_blank");
  $("#conteudo [href*='https://']").attr("target", "_blank");
  $("[href*='.pdf']").attr("target", "_blank");

setInterval("updateTime()",60000);
});

function updateTime() {
Changed:
<
<
$("#datahora")[0].src = $("#datahora")[0].src; // $("#datahora")[0].contentDocument.location.reload(true); $("#datahora").attr({ src: $("#datahora").attr("src") });
>
>
$("#horadata").html('');
 }

META FILEATTACHMENT attachment="jquery.js" attr="" comment="" date="1281549810" name="jquery.js" path="jquery.js" size="69838" stream="jquery.js" tmpFilename="/var/tmp/CGItemp9282" user="FlavioAraujo" version="1"
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback