31 Dec 2018: Thank you to our knowledgeable and friendly forums users for another great year. We are aware of the uptick in spam accounts and are doing our best to ban these at first sight. Thank you for your patience!

One more token, please?

Hi Developers,
Could we have one more token please, for StudySubjectOID? With that we can add javascript to display in a CRF the value of items of other CRFs in other Events.
I'm thinking of :
<div id="ValueFromOtherEvent">&nbsp;</div>
<script src="includes/jmesa/jquery.min.js"></script>
<script>
$.noConflict();
jQuery(document).ready(function($) { 
$.ajax({
         type: "GET",
         dataType: "xml",
         success: parseXML
      });
      function parseXML(xml){
var OtherValue;
         $(xml).find("ItemData").each(function(){
if($(this).attr("ItemOID") == "I_TDSGE_ITEM1"){
OtherValue = $(this).attr("Value");
         }
else
{OtherValue = "Not available";}
})
$("#ValueFromOtherEvent").html(OtherValue); 
      }; 
function getValue(){
$("#ValueFromOtherEvent").html("waarde");
};
getValue();
})
</script>
Many thanks,
Gerben Rienk
Tagged:

Comments

This discussion has been closed.