Tag: jquery ui

JavaScript不能从networking驱动器工作

我试图运行下面的文件。 它在本地驱动器上运行时运行得非常好,但如果将其放在networking驱动器上,则不再有效。 任何想法,为什么这可能是? 下面是我试图运行的代码。 它从这里使用pivottable: https : //github.com/nicolaskruchten/pivottable 。 <!DOCTYPE html> <html> <head> <title> Demo</title> <!– external libs from cdnjs –> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> <!– PivotTable.js libs from ../dist –> <link rel="stylesheet" type="text/css" href="../dist/pivot.css"> <script type="text/javascript" src="../dist/pivot.js"></script> <style> body {font-family: Verdana;} </style> <!– optional: mobile support with jqueryui-touch-punch –> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script> […]

为什么npm无法安装jqueryui包?

我试图从npm安装jqueryui及其打字稿。 虽然jquery包已经成功安装,jqueryui的两个包都失败了。 请注意,如果我访问网站npmjs.com,我可以浏览jqueryui包 debugging数据: npm -v 3.10.10 包裹位置: https://www.npmjs.com/package/jqueryui https://www.npmjs.com/package/@types/jqueryui Comamnds: npm install –save jqueryui npm install –save @ types / jqueryui 错误 jqueryui'不在npmregistry中。 @ types / jqueryui'不在npmregistry中。

什么框架与JQuery UI一起使用?

我想在我的节点服务器中使用JQuery UI中的一些小部件。 但是,即使进度条更新也有问题。 什么是与JQuery UI一起使用的最好的框架,有没有使用它的nodejs服务器的例子?

Jquery ui标签与玉

您好,我试图创buildJQuery的UI标签与玉节点js模板引擎。 它不工作。 这里是index.jade: #tabs ul li a(href='#tabs-1') New employee li a(href='#tabs-2') Index of employees #tabs-1 .page-header h1 New employee – var form = formFor(employee, {action: pathTo.employees(), method: 'POST', id: "employee_form", class: 'form-horizontal'}) != form.begin() include _form .form-actions != form.submit('<i class="icon-ok icon-white"></i> Create employee', {class: 'btn btn-primary'}) span= ' or ' != linkTo('Cancel', pathTo.employees(), {class: 'btn'}) […]

自定义生成的jQueryUI

我刚刚创build了一个jQuery的自定义构build,并减less了库只包括我需要的部分。 我按照在GitHub上托pipe的jQuery仓库中logging的指示来做到这一点。 它基本上使用node.js,npm,git和grunt,你可以在命令行中全部排除部分API,并进行构build。 现在我需要用jQueryUI做同样的事情,但是在他们的文档中没有看到这样的说明。 有谁知道这是否可以以同样的方式完成? 减lessjQueryUI库的最简单的方法是什么,并根据我的需要专门定制它? 提前致谢!

如何使用jQuery插件与browserify?

我已经通过npm安装了jquery-ui: npm install jquery-ui –save 我已经遇到了匀场的概念,但我相信垫片不再是必需的。 我认为我的代码应该只是工作,但它不。 这是我得到的: — login.js — require('jquery-ui'); require('jquery-ui/effect-shake'); module.exports = { init: function() { var elem = $(…); // some element on the page elem.effect('shake'); } }; 它被浏览并包含在我的主页面。 这是如何打电话: — index.html — <head> <script src="browserified.js"></script> <script> $().ready(function() { login.init(); }); </script> 所以我.effect的问题是.effect不是一个函数。 我需要这个不正确? browserified.js:5571 Uncaught TypeError:elem.effect不是一个函数 我错过了什么?

Angular4找不到Jquery-UI函数

我已经安装了jquery和jquery-ui npm install –save jquery jquery-ui 这些文件位于node_modules目录中。 我有一个声明JQuery的组件 declare var $: JQueryStatic; 我的jQuery的function工作得很好,但jQuery的用户界面function不。 $('some-div').dropdown(); // works $('window').draggable(); // draggable is not recognized as a function 所以,显然我包含jquery-ui是不正确的。 我尝试在我的.angular-cli.json页面中包含一些不同的东西,但没有成功。 我在.angular-cli文件中试过的东西: … "scripts": [ "../node_modules/jquery/dist/jquery.min.js", "../node_modules/jquery-ui/ui/widgets/draggable.js", "../node_modules/jquery-ui/ui/draggable.js", ] 我尝试直接导入组件,但是这给$ ui定义的问题。 我也有错误,定义没有定义。 我看过npm jquery-ui和jquery -ui升级指南 任何想法,我要出错?

用jade创buildjquery ui选项卡(nodejs模板引擎)

您好我尝试创buildjQuery的ui标签与玉节点js模板引擎,它不起作用。 这里是index.jade: doctype 5 html head link(href='/stylesheets/style.css', rel='stylesheet') script(src='http://code.jquery.com/jquery-1.6.1.min.js') script(src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js') script(src='/js/jquery-main.js') body #chat #nickname form.wrap#set-nickname p Please type in your nickname and press enter. input#nick p#nickname-err Nickname already in use #connecting .wrap Connecting to socket.io server #tabs ul li.first a(href='#grchat') group chat li.last a(href='#canv') canvas #grchat #messages #nicknames #lines form#send-message input#message button Send #canv h1 […]

当使用Express在node.js中要求使用jQuery-ui时,“TypeError:undefined不是一个函数”

我正在尝试设置一个小型的node.js webserver,它将使用jQuery和jQuery-ui 。 我用Express来build立一个小项目,然后用npm <package-name> install –save我需要的所有包。 请记住,我是JavaScript新手,所以我可能会做一些愚蠢的事情,但我找不到任何人有相同的问题(只是相关的)。 Express已经build立了这样的项目: $ ls app.js bin node_modules npm-debug.log package.json public routes views 文件夹node_modules现在包含: $ ls node_modules body-parser cookie-parser debug express jade jquery jquery-ui morgan serve-favicon 我的app.js文件是由Express设置的,除了我现在包含jQuery和jQuery-ui ,像这样: $ cat app.js var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser […]

在玉模板的dateselect器

我是新来的翡翠和expression,并需要从jQuery UI添加dateselect器到我的分层popup窗口之一。我已经尝试内联脚本和头部的JavaScript与onload没有任何运气。 script(src='/javascripts/jquery-1.4.4.js') script(src='/javascripts/jquery-ui.js') script(type='text/javascript') function initDate() { $('#mdate').datepicker({dateFormat: 'yyyy-mm-dd'}); } input(type='text', name='mdate', id='mdate') 任何build议或帮助,将不胜感激。 谢谢