日期:2014-05-16 浏览次数:20302 次
var currencySelhtm = "";
$.ajax({
url: "/servlet/CurrencyAction.do",
type: "post",
dataType: "xml",
data: "action=showall",
success: function(xmlResult) {
var $xml = $(xmlResult).find("Currency");
if ($xml.length < 1) {
} else {
for (var m = 0; m < $xml.length; m++) {
var Currency_Name = $xml.eq(m).attr("Currency_Name");
var Currency_Signcode = $xml.eq(m).attr("Currency_Signcode");
var Currency_ID = $xml.eq(m).attr("Currency_ID");
currencySelhtm += '<option value="' + Currency_ID + '">' + Currency_Name+'</option>';
}
}
},
error: function() {
currencySelhtm = "";
}
});
alert(currencySelhtm);
result += "币种:<select name='tcurrencys' id='tcurrencys'><option value='-1'>---</option >" + currencySelhtm + "</select><br/><br/>";
var currencySelhtm = "";
$.ajax({
url: "/servlet/CurrencyAction.do",
type: "post",
dataType: "xml",
data: "action=showall",
success: function(xmlResult) {
var $xml = $(xmlResult).find("Currency");
if ($xml.length < 1) {
} else {
for (var m = 0; m < $xml.length; m++) {
var Currency_Name = $xml.eq(m).attr("Currency_Name");
var Currency_Signcode = $xml.eq(m).attr("Currency_Signcode");
var Currency_ID = $xml.eq(m).attr("Currency_ID");
&