Javascript jquery fancyform 1.4.2插件transformSelect()导致我的js处理程序停止在移动浏览器上工作
因此,我有以下html/js代码,在桌面浏览器(至少是IE10+,最新的FF/Chrome,目标用户)上运行良好: HTML(显示在colorbox覆盖中,对绑定使用敲除): 在我的文档中,它的名称是这样的。就绪:Javascript jquery fancyform 1.4.2插件transformSelect()导致我的js处理程序停止在移动浏览器上工作,javascript,jquery,html,jquery-selectors,fancyform,Javascript,Jquery,Html,Jquery Selectors,Fancyform,因此,我有以下html/js代码,在桌面浏览器(至少是IE10+,最新的FF/Chrome,目标用户)上运行良好: HTML(显示在colorbox覆盖中,对绑定使用敲除): 在我的文档中,它的名称是这样的。就绪: $(document).ready(function () { initHelpContents(); InitPrintCockpit(); //here my variable is set to 'calc'
$(document).ready(function () {
initHelpContents();
InitPrintCockpit(); //here my variable is set to 'calc'
printCockpitPageModel.menuplanid('###MenuPlanId###');
$("select").transformSelect();
$("a.btn-generic").colorbox({ inline: true, width: "905px", close: "" });
accordion.init();
footerNav.init();
pricetype.init();
changeSettingHint.init();
$('.reset').click(function () {
$('#cboxClose').click();
});
// $(document).ready() may execute before css styles are applied and wrong font-family or font-size may result in wrong scrollHeight.
$(window).load(function () {
$('#Menue').find('textarea').change();
})
});
如前所述,在桌面浏览器上一切正常。但在移动浏览器(在ipad/最新safari和android4/Chrome32以及内置“浏览器”上测试)上打开它会导致奇怪的行为。似乎整个“init”部分都没有执行。每个div都会显示,而不仅仅是我通过击倒设置的div。我试图通过chrome调试器工具查找它,但在控制台上没有得到任何输出。我还试着查看中的内容。选择了索引,但也很好。然后我尝试删除$(“选择”).transformSelect()代码>从我的文件准备,和“ta daa”,它似乎像一个魅力的工作
我在这里使用fancyforms 1.4.2(),而谷歌搜索并没有给我答案,所以我希望你们中的一些人能在这里帮助我,因为我现在真的没有想法了
pricetype = {
init: function () {
$('#selectPriceType').change(function () {
$(this).siblings('.price-type').hide().eq(this.selectedIndex).show();
$.colorbox.resize();
}).change();
}
}
$(document).ready(function () {
initHelpContents();
InitPrintCockpit(); //here my variable is set to 'calc'
printCockpitPageModel.menuplanid('###MenuPlanId###');
$("select").transformSelect();
$("a.btn-generic").colorbox({ inline: true, width: "905px", close: "" });
accordion.init();
footerNav.init();
pricetype.init();
changeSettingHint.init();
$('.reset').click(function () {
$('#cboxClose').click();
});
// $(document).ready() may execute before css styles are applied and wrong font-family or font-size may result in wrong scrollHeight.
$(window).load(function () {
$('#Menue').find('textarea').change();
})
});