草庐IT

page-init

全部标签

c# - Page_ClientValidate() 对象预期错误,无法找到验证器

我有一个HomePage.aspx表单,其中包含一个空的asp:Panel,一个让用户选择SPFielType的下拉列表...在索引更改时,我的HomePage.aspx.cs页面将选择文本并加载用户控件在面板内,此用户控件将根据用户选择的spfieldtype和一个调用validateForm()函数的按钮生成一个控件...我的问题是validateForm()中的Page_ClientValidate()函数找不到验证器,我也试过给一个组名,但仍然没有用。当我将按钮放入我的aspx页面(不是动态呈现)时,它正在验证我的页面。()。但是当我动态渲染它时,无法验证表单。这就是我想要做的

javascript - Facebook init() 的 channelUrl 参数是否已弃用?

我记得FB.init()有一个channelUrl选项,但根据thispage,它似乎不再存在了此功能是否已弃用? 最佳答案 是的,不再需要channelUrl。这是博客文章中的引述:ChangedbrowserrequirementsfortheJavaScriptSDKInorderfortheJavaScriptSDKtobeabletocommunicatewithFacebook,wenowrequireeithernativesupportforHTML5postMessage,orsupportforFlash,min

javascript - Karma 测试错误 "unable to init ocLazyLoad"

来自快速入门sb-admin-angular,我正在尝试运行测试,但出现错误unabletoinitocLazyLoad。(这是Windows7机器。)我用来运行测试的命令是:$grunttest--force我从thisthread了解到我必须确保在karma.conf.js中添加了ocLazyLoad脚本的路径。files:['bower_components/angular/angular.js','bower_components/angular-mocks/angular-mocks.js',...'bower_components/oclazyload/dist/ocLaz

javascript - Chrome 扩展上下文菜单 : how to append div to page after clicking menu item

尝试构建Chrome扩展程序。目前,我已经整理了一个上下文菜单项。单击上下文菜单项时,它会在我的后台脚本context_menu.js中触发itemClicked():functionitemClicked(info,tab){alert("clicked");}警报触发。我还可以做一些事情,比如通过itemClicked()发送ajax请求但是,我无法将任何元素附加到页面(或任何类型的DOM操作)。即使像这样基本的东西也不起作用:vard=document.createElement('div');d.setAttribute("css","width:100px;height:10

javascript - node_modules 文件夹上的 Github Pages 404

我正在尝试使用GitHub页面使用JavaScript在发布者-订阅者模块上呈现我的GitHub存储库。gh-pages分支看起来不错。但是,mustache代码不会呈现在我在GitHubPages上的项目中。它看起来像这样:GitHub存储库:https://github.com/ajhalthor/pubsub-application此项目的Github页面repo:https://ajhalthor.github.io/pubsub-application/GitHub存储库也有node_modules文件夹,所以它应该是自给自足的。Mustache、jQuery和Bootstr

javascript - "JavaScript placed at the end of the document so the pages load faster"是吗?

这个问题在这里已经有了答案:关闭9年前。PossibleDuplicate:Javascriptonthebottomofthepage?我在一些推特Bootstrap示例中看到了一条评论。它说JavaScriptplacedattheendofthedocumentsothepagesloadfaster这是真的吗??如果是,那么它是如何工作的??

javascript - Protractor 和 Angular : How to test two pages in an app, 一个接一个?

我想在我的Angular应用程序的两个单独页面上运行Protractor测试:/dashboard和/articles。复杂的是我必须手动登录应用程序。目前我有这个设置:varLoginPage=function(){ptor=protractor.getInstance();this.login=function(url){ptor.get(url);ptor.findElement(protractor.By.model('email')).sendKeys(config.LOGIN_EMAIL);ptor.findElement(protractor.By.model('pass

javascript - jQuery-UI draggable error 'cannot call methods prior to init' , 在更新到版本 1.10.1

我在使用jQuery-UI1.8.2时可以正常使用可拖动插件,然后我更改为1.10.1。我发现的主要区别是在启用和禁用插件时,我不再需要使用:$this.draggable('option','disabled',true);但可以简单地使用$this.draggable('disable');但后来我意识到还有另一个问题。我得到这个错误,它弄乱了我的整个程序,我不知道如何修复它:Error:cannotcallmethodsondraggablepriortoinitialization;attemptedtocallmethod'enable'为了修复它,我确保在任何进一步的选项之

javascript - 卡斯珀JS : Why does my url change to about:blank when my page is loaded?

我是PhantomJS/CasperJS的初学者。我只想启动一个session并验证它是否正常。这是我的代码:varcasper=require('casper').create({verbose:true,logLevel:'debug',pageSettings:{loadImages:false,loadPlugins:false,userAgent:'Mozilla/5.0(WindowsNT10.0;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/39.0.2171.71Safari/537.36Edge/12.0'}});ca

javascript - mocha-phantomjs 的 mocha init 超时

我有以下testrunner.html:Specsfunctionassert(expr,msg){if(!expr)thrownewError(msg||'failed');}_runner.js如下所示://ConfigureRequireJSrequire.config({baseUrl:'/client',urlArgs:"v="+(newDate()).getTime()});//Requirelibrariesrequire(['require','lib/chai','lib/mocha'],function(require,chai){//Chaiassert=chai