Code Monkey home page Code Monkey logo

the_json_store's People

Contributors

quirkey 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the_json_store's Issues

Demo in Visual Studio and IIS

I really appreciate this example. I had to do a few things to get it working with VS and IIS. Notably, you have to have a web.config and within web.config you add the following:

<system.webServer> <staticContent> <mimeMap fileExtension=".json" mimeType="application/json" /> <mimeMap fileExtension=".template" mimeType="text/template" /> </staticContent> </system.webServer>

It is also necessary to create a Virtual Directory in IIS to the project. From there you you change the path in json_store.js to get around CORS and Chrome issues.

this.around(function(callback) { var context = this; this.load('http://localhost/yoursite/data/items.json') .then(function(items) { context.items = items; }) .then(callback); });

It doesn't work on Chrome

Very nice tutorial, but it seems not working on Chrome.
I tried Safari and Firefox and all went well, but on Chrome
$.ajax({
url: 'data/items.js',
dataType: 'json',
success: function(items) {
$.each(items, function(i, item) {
context.log(item.title, '-', item.artist);
});
}
});
});

return a parserror

sammy.template.js non-escaped output

I have created a few helpers that produce HTML, however, all output from <%= %> seems to be escaped. Is there away to override this behaviour ?

if not, could this functionality be considered in future updates? I much rather have the option (a option as to maintain backward compatibility) to disable this feature so all output is raw and then create a helper to escape output when required on a per item bases. Perhaps such a helper could also be included?

Not working

I've download example (zip file), but its not working. Any ideas?

Edit: probably something with context.render?

All items loading but only last item rendering.

Hi! Just stumbled onto your project. It's awesome! You've done some great work and I'm considering using this in production already.

The problem I'm having is that I keep getting my first three items replaced by http://github.com/lgomez/sammy-test/blob/master/javascripts/app.js#L23-25. The items are all being loaded and $.each(context.items, function(i, item) { is running four times. But the result I get is a single item in #main (which in my case is #content). This is the entire content of the items section as shown by firebug: http://github.com/lgomez/sammy-test/blob/master/result.html.

I've looked through the code, tried your version, copied your app.js file from this project exactly as it is, etc... but still get the same problem. I can't see it. Thoughts?

Thank you!

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.