|
1 |
function getParams() {
|
|
2 |
var paramsArray = document.location.href.split('?')[1].split('&');
|
|
3 |
for (var i = 0; i < paramsArray.length; i++) {
|
|
4 |
var temp = paramsArray[i].split('=');
|
|
5 |
alert(unescape(temp[0]) + '=' + unescape(temp[1]));
|
|
6 |
}
|
|
7 |
}
|
|
8 |
|
1 |
9 |
function addParagraph() {
|
2 |
10 |
var newParaWidget = document.createElement("textarea");
|
3 |
11 |
newParaWidget.setAttribute("rows", "6");
|
... | ... | |
389 |
397 |
|
390 |
398 |
var imgTD = createTD("","right");
|
391 |
399 |
|
392 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/previous.gif",
|
|
400 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
|
393 |
401 |
"Move Up","moveUpRow(event)","pointer"));
|
394 |
402 |
imgTD.appendChild(document.createTextNode(" "));
|
395 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/next.gif",
|
|
403 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
|
396 |
404 |
"Move Down", "moveDownRow(event, \"addaorow\")",
|
397 |
405 |
"pointer"));
|
398 |
406 |
imgTD.appendChild(document.createTextNode(" "));
|
399 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/delete.gif",
|
|
407 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
|
400 |
408 |
"Delete", "delRow(event)",
|
401 |
409 |
"pointer"));
|
402 |
410 |
|
... | ... | |
543 |
551 |
labelTD.appendChild(createHiddenInput("taxonRank", taxonRank));
|
544 |
552 |
|
545 |
553 |
var imgTD = createTD("","right");
|
546 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/previous.gif",
|
|
554 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
|
547 |
555 |
"Move Up", "moveUpRow(event)",
|
548 |
556 |
"pointer"));
|
549 |
557 |
imgTD.appendChild(document.createTextNode(" "));
|
550 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/next.gif",
|
|
558 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
|
551 |
559 |
"Move Down", "moveDownRow(event, 'addtaxarow')",
|
552 |
560 |
"pointer"));
|
553 |
561 |
imgTD.appendChild(document.createTextNode(" "));
|
554 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/delete.gif",
|
|
562 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
|
555 |
563 |
"Delete", "delRow(event)",
|
556 |
564 |
"pointer"));
|
557 |
565 |
|
... | ... | |
668 |
676 |
labelTD.appendChild(createHiddenInput("keywordTh", keywordTh));
|
669 |
677 |
|
670 |
678 |
var imgTD = createTD("","right");
|
671 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/previous.gif",
|
|
679 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
|
672 |
680 |
"Move Up", "moveUpRow(event)",
|
673 |
681 |
"pointer"));
|
674 |
682 |
imgTD.appendChild(document.createTextNode(" "));
|
675 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/next.gif",
|
|
683 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
|
676 |
684 |
"Move Down", "moveDownRow(event, 'addkeyrow')",
|
677 |
685 |
"pointer"));
|
678 |
686 |
imgTD.appendChild(document.createTextNode(" "));
|
679 |
|
imgTD.appendChild(createImageLink("http://ebm.nceas.ucsb.edu:80/knb/style/images/delete.gif",
|
|
687 |
imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
|
680 |
688 |
"Delete", "delRow(event)",
|
681 |
689 |
"pointer"));
|
682 |
690 |
|
fix javascript image references with contextUrl