GithubHelp home page GithubHelp logo

Basic example about backgrid HOT 4 CLOSED

cloudflarearchive avatar cloudflarearchive commented on August 16, 2024
Basic example

from backgrid.

Comments (4)

wyuenho avatar wyuenho commented on August 16, 2024

git clone --recursive git://github.com/wyuenho/backgrid.git

I don't understand what you mean by bypassing CORS. All 3 examples should be playable on Webkit directly from your browser. backbone-pageable's CORS issue only affects the infinite paging paginator on Firefox. Also, if u are viewing the examples directly as files, chrome will yell at you, so you should serve them via a web server like apache. You can play with them from Safai tho. Alternatively u can just play directly from the documentation site

from backgrid.

Integral avatar Integral commented on August 16, 2024

Hi! I mean that I can't use json anywhere except my host due to browser restrictions.
Anyway. I see now that this's working, thanks!
But I discovered very strange thing. When I do render in my code I receive this object:
always: function () { done: function () { fail: function () { notify: function () { notifyWith: function ( context, args ) { pipe: function ( /* fnDone, fnFail, fnProgress */ ) { progress: function () { promise: function ( obj ) { reject: function () { rejectWith: function ( context, args ) { resolve: function () { resolveWith: function ( context, args ) { state: function () { then: function ( /* fnDone, fnFail, fnProgress */ ) { view: child
Where view is that what I need (that object which I received when doing render in your code). So the el (render().view.$el) have empty table: <table class="backgrid"></table> in outerHtml despite I have a big collection... Strange. Any Ideas?

from backgrid.

wyuenho avatar wyuenho commented on August 16, 2024

No idea, but it sounds like you are making progress!

That object you posted looks like an object where your view is attached to a jquery deferred returned from a fetch. Something is seriously wrong with your code.

from backgrid.

Integral avatar Integral commented on August 16, 2024

Thanks! I think these problems related either to backbone boilerplate (async configuration to layout manager) either to layout manager.

from backgrid.

Related Issues (20)

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.