Giter VIP home page Giter VIP logo

nquery's People

Contributors

tblobaum avatar tomducoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nquery's Issues

Bug in nquery.js line 135?

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!

nodeQuery not working.

@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>

Browser support list?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.