tblobaum / nquery Goto Github PK
View Code? Open in Web Editor NEWremote control jQuery/Zepto with node.js (experimental)
Home Page: http://tblobaum.github.com/nodeQuery/
remote control jQuery/Zepto with node.js (experimental)
Home Page: http://tblobaum.github.com/nodeQuery/
Is there a list somewhere that states which browsers are supported? The reason behind the question is that I saw a dNode compatibility list, and since NodeQuery uses dNode it might be of use to be informed if it would work in certain configurations. Thanks
Make it work \o/
@tblobaum I need help trying to make nodeQuery work. I'm following your usage instruction. the html code below is deliberately modified to prevent github from escaping the tags.
folder:
nodeQueryTest
-- app.js
-- public
----- test.html
-- node_modules
----- express
----- dnode
----- nodeQuery
app.js code:
var Express = require('express')
, dnode = require('dnode')()
, nQuery = require('nodeQuery')
, express = Express.createServer()
var app = function ($) {
$.on('ready', function () {
$('body').append('Hello World')
})
}
nQuery
.use(app)
express
.use(nQuery.middleware)
.use(Express.static(__dirname + '/public'))
.listen(3000)
dnode
.use(nQuery.middleware)
.listen(express)
test.html code:
!doctype html
html
body
script src='//code.jquery.com/jquery.min.js' charset='utf-8'
script type='text/javascript' src='/nquery.js' charset='utf-8'
/body
/html
Output ERROR:
C:\Users\shawnlim\Documents\Websites\nodeprojects\nodeQueryTest>node app
C:\Users\shawnlim\Documents\Websites\nodeprojects\nodeQueryTest\app.js:21
.use(nQuery.middleware)
^
TypeError: Object # has no method 'use'
at Object. (C:\Users\shawnlim\Documents\Websites\nodeprojects\nod
eQueryTest\app.js:21:4)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
C:\Users\shawnlim\Documents\Websites\nodeprojects\nodeQueryTest>
Hey there, i cannot seem to figure out how to work the backend for nodeQuery. Your usage instruction isn't working for me.
Can you show me the source code for http://todos-nquery.nodejitsu.com/ ?
Thanks for the lib, looks really cool. Trying to run basic setup & test with $(body) append, I get this in my browser console:
var dirname = require._core[filename]
? ''
: require.modules.path().dirname(filename)
;
nquery.js:135TypeError: 'undefined' is not a function (evaluating 'require.modules.path()')
So nquery doesn't work in the browser & no append.
Using node 0.4.12.
Any guidance? Really hoping to use this lib.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.