Changeset 24136
- Timestamp:
- 2011-06-09T15:52:11+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/js/gui_div.js
r23551 r24136 2 2 console.log("Loading gui_div.js\n"); 3 3 4 var initialised_iframe = "false";4 // var initialised_iframe = "false"; 5 5 6 6 function onTextChange(item, text) 7 7 { 8 console.log("I have set "+item+".value to "+text); 8 9 item.setAttribute("value",text); 10 } 11 12 function onSelectChange(item) 13 { 14 console.log("I have set "+item.value+".selected to selected"); 15 for (var i=0; i<item.options.length; i++) 16 { 17 if(item.selectedIndex == i) 18 item.options[i].setAttribute("selected", "selected"); 19 else 20 item.options[i].removeAttribute("selected"); 21 } 22 //item.options[item.selectedIndex].selected = "selected"; 23 //item.setAttribute("selected","selected"); 9 24 } 10 25 … … 82 97 classifier_name = getSubstring(myurl, "&cl", "&"); 83 98 84 var post_url = "http://localhost:8 080/greenstone3/format?a=f&sa=update&c=" + collection_name +"&s=" + service_name;99 var post_url = "http://localhost:8989/greenstone3/format?a=f&sa=update&c=" + collection_name +"&s=" + service_name; 85 100 86 101 if(classifier_name != null) … … 107 122 classifier_name = getSubstring(myurl, "&cl", "&"); 108 123 109 var post_url = "http://localhost:8 080/greenstone3/format?a=f&sa=save&c=" + collection_name +"&s=" + service_name;124 var post_url = "http://localhost:8989/greenstone3/format?a=f&sa=save&c=" + collection_name +"&s=" + service_name; 110 125 111 126 if(classifier_name != null) … … 329 344 var CURRENT_SELECT_VALUE = ""; 330 345 346 /* 331 347 var iframe = document.getElementById('iframe'); 332 348 var iframe_document = iframe.document; … … 385 401 initialised_iframe = "true"; 386 402 } 403 */ 387 404 388 405 /*
Note:
See TracChangeset
for help on using the changeset viewer.