Template:Team:TU Delft/PartView

From 2010.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 1: Line 1:
<html>
<html>
-
<div id="jsonp</html>{{{part|BBa_B0032}}}<html>"></div>
+
<div id="jsonp</html>{{{part|BBa_B0032}}}<html>">
 +
</div>
<script type="text/javascript">
<script type="text/javascript">
-
 
-
 
$(function() {
$(function() {
Line 14: Line 13:
// default callback
// default callback
-
window['_jsonpCallback' + partName] = function (part) {
+
window['_jsonpCallback' + partName] = function (parts) {
 +
var part = parts[0];
// this will be called by JSON code
// this will be called by JSON code
alert(part.name + ': ' + part.desc);
alert(part.name + ': ' + part.desc);

Latest revision as of 19:38, 26 October 2010