Pager.prototype.goLSS0730 = function(params) { var self = this; indicator.on(); this.execApi('/SLS_UII_LSS0730.json', params, function(response) { var pageInfo = response.pageInfo; getHtmlUtf8("LSS0730.html", function() { loginStatus.off(); viewNumber.off(); footer.off(); $('footer').hide(); self.setLSS0730DefaultParams(pageInfo); indicator.off(); }); }); }; function download730() { $("#ECIFrom").submit(); }; Pager.prototype.setLSS0730DefaultParams = function(pageInfo) { //PCの場合 if (pageInfo.elm_MOBILE_PHONE_FLG == "1") { $('#pc').show(); $('#smphone').hide(); $("#ECIFrom").attr('method', 'post'); //スマホの場合 } else { $('#pc').hide(); $('#smphone').show(); $("#ECIFrom").attr('method', 'get'); $("#ECIFrom").attr('target', '_blank'); } $("#ECIFrom").attr('action', pageInfo.toUrl); $('#MODE').val(pageInfo.elm_MODE); $('#ECI_DATAPASS').val(pageInfo.elm_ECI_DATAPASS); $('#ECI_CHECKSUM').val(pageInfo.elm_ECI_CHECKSUM); if (pageInfo.elm_MOBILE_PHONE_FLG == "1") { $("#ECIFrom").submit(); } }; function getHtmlUtf8(filename, callback) { var self = this; $.ajax({ cache : true, type : 'GET', url : Settings.html_file_path + '/' + filename, timeout : Settings.timeout * 1000, success : function(html) { self.htmlFile = filename; self.pageId && self.scrollTo(); $('#elmContainer').get(0).innerHTML = ''; location.hash = filename.replace(/(\_[0-9]+\.html|\.html)/, ''); $('#errorPage').hide(); $('#messages').hide(); $('#elmContainer').css('visibility', 'hidden'); $('#elmContainer').hide().html(html).ready(function() { callback(); $('#elmContainer').css('visibility', 'visible'); $('#elmContainer').show(); }); }, error : commonError.connectError, beforeSend: function(xhr){ xhr.overrideMimeType("text/html;charset=utf-8"); } }); };