/* ===================================== * 選択ボックスの内容を取得する * Type: php javascript * Version: 1.3.0 * Register: 2013-03-01 * Update: 2013-03-01 * * Use: jquery ===================================== */ function select_option(resultID, listName, selectName, codeName, codeValue, defaultValue) { ajaxURL = "/common/php/lib/select_option.php"; ajaxURL += "?list=" + listName + "&name=" + selectName + "&code=" + codeName + codeValue + "&default=" + defaultValue; _loadData(resultID, ajaxURL); } function _loadData(result_id, request_url) { $.ajax({ type: "GET", url: request_url, cache: false, success: function(html) { $('#' + result_id).html(html); }, error: function(XMLHttpRequest, textStatus, errorThrown) { $('#' + result_id).html("ネットワーク・エラーが発生しました"); } }); } // =============================================================================