Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joscha Rohmann
    @Kanaye
    Hey @jourdein . What's your specific case because normally you should provide all views and let the handling be done by blocks (e.g. with views lazy-loading ). If you handle view insertion yourself you might get unexpected results.
    If you want a callback after jsblocks has initialized a views dom (e.g. after the lazyloading) you can hook into the views ready method see here.
    Jourdein
    @jourdein
    I wasn't using jsblocks for the entirety of my website but just part of it. I have js code all in 1 file. The view part was served by my Rails backend. So some view can be visible or not based on the access the user has at that moment.
    Joe Conley
    @josephpconley
    does the if query support executing the template query?
    Joscha Rohmann
    @Kanaye
    Hi @josephpconley!
    Yes the template query works within the if data-query but with limitations.
    The query will only get executed the first time, not when the obervable changes.
    Here a short example.
    ShaneTran
    @ShaneTran
    Hi guys
    I have a problem with ajax callback ex: https://jsfiddle.net/7fqnmqLv/30/
    the action2 not work. Help me please. Thanks
    Joscha Rohmann
    @Kanaye
    Hey @ShaneTran, jsblocks only evaluates queries when it renders a view the first time. That's for performance and security reasons. But you can do something like this.
    ShaneTran
    @ShaneTran
    @Kanaye Ok thanks
    HDT
    @tranduchiep
    Hi @Kanaye i created pagination demo but the pages not showing https://jsfiddle.net/5c3cyook/17/ debug return 0, plz help me thanks
    Joscha Rohmann
    @Kanaye
    Hi @tranduchiep. Hmm the page works as expected on my system. I tested in FireFox, Chrome and Edge. It takes a few seconds until the content is shown (the time it takes to finish the ajax request) but then it renders as expected.
    Can you tell me more about the system and browser it doesn't work with ?
    ShaneTran
    @ShaneTran
    @Kanaye OS X EL Capitan - Chrome 51.0.2704.103
    Joscha Rohmann
    @Kanaye
    bs_macelc_Chrome_51.0.jpg
    Maybe I misunderstand your issue. But in the screenshot above it looks to me like everything is working
    The screenshot is taken on El Capitan with the latest Chrome 51
    HDT
    @tranduchiep
    @Kanaye https://jsfiddle.net/5c3cyook/17/ i forget remove number "201" so the code work, after i replace it not work, the code is same https://github.com/astoilkov/jsblocks-shopping-example/blob/master/app/js/app.js
    HDT
    @tranduchiep
    @Kanaye sorry this link https://jsfiddle.net/5c3cyook/20/
    Joscha Rohmann
    @Kanaye
    Ahh I got it. There is a (fixed) bug in the current release.
    @astoilkov Can you build and publish a 0.3.5 release ?
    @tranduchiep But you want to use this.countries().length at line 17 because you want to paginate all entries not just the visible :)
    Antonio Stoilkov
    @astoilkov
    Yeah. I can do it. But I should plan it for next week.
    HDT
    @tranduchiep
    @Kanaye so how can i fix that?
    Joscha Rohmann
    @Kanaye
    Wait for the next release or pull and build jsblocks yourself 'till then @tranduchiep
    HDT
    @tranduchiep
    @Kanaye Ok Thank you
    scrambledcode
    @scrambledcode
    I have a question regarding the stats in Performance section on the main page. JSBlocks is compared to Angular. I would like to know if it's Angular 1 or Angular 2? I assume it's 1 but I wanted to clarify this.
    Antonio Stoilkov
    @astoilkov
    It is Angular 1 indeed
    scrambledcode
    @scrambledcode
    @astoilkov Can you do same stats but for Angular 2?
    Antonio Stoilkov
    @astoilkov
    Yes. However, I don't have the time at the moment. For what do you need the comparison?
    scrambledcode
    @scrambledcode
    I like experimenting with new stuff (frameworks, langs and etc) and I wanted to see if it worths actually doing so ..
    How are you compared to ELM ?
    which is not a framework but a lang but still
    Antonio Stoilkov
    @astoilkov
    I have never compared it to ELM. Note that jsblocks is not in active development. You could experiment with it but be aware of this fact
    scrambledcode
    @scrambledcode
    Дидн'т кнов тхат
    Didn't know that , thanks for the info ;)
    It;s not because you are busy with other stuff or there is other reason ?
    Antonio Stoilkov
    @astoilkov
    It's because I'm busy with caret.io
    scrambledcode
    @scrambledcode
    I see..
    ShaneTran
    @ShaneTran
    Hi guys
    https://jsfiddle.net/qnvxpy8z/2/ i have problem, i cannot get data item. Help me plz
    Joscha Rohmann
    @Kanaye
    Hi @ShaneTran. Unfortunatly jsblocks currently has an issue with "... is undefined" type errors thrown in expressions e.g. because data is not available yet. You can work around it like I did in your example here. I'll add it to the list for when I have more time to contribute again.
    ShaneTran
    @ShaneTran
    @Kanaye thank you
    Osazeme Usen
    @osazemeu
    @scrambledcode I still think jsblocks will be faster than angular2.
    Joscha Rohmann
    @Kanaye
    That's possible but I haven't profiled angular 2 yet, so I can't tell for sure. But Angular 2 could be faster with the initial load because currently we have a high initial rendering time.
    Israr Ahmad Khan
    @israrWZ_twitter
    hello everyone
    can anyone guide me on how to use mysql with jsblocks, do I need to use external REST only or can I use some npm packages to directly access and manipulate data on db server. Moreover is there any standard templating engine for jsblocks? thanks
    Joscha Rohmann
    @Kanaye
    Hi @israrWZ_twitter, for now you will need to write some REST-ish API on your node-instance to access the data, because jsblocks currently doesn't provide a way to provide data server-side.
    Regarding the templating engine, jsblocks is - in some terms - a templating engine but also does more than that. Maybe you want to take a look at the documentation and the shopping-example for an example on how to write an application with jsblocks.
    Israr Ahmad Khan
    @israrWZ_twitter
    thanks @Kanaye , Is there any jblocks compatible ui assets or a theme that I can start with?
    Joscha Rohmann
    @Kanaye
    I'm not aware of anything like that. Sorry.
    david.guimard
    @dguimard
    I just discover this project
    it s really great, i really love it, i was using mvp , mvc in plain vanilla before for big apps , never needed any framework, but jsblock is really good , thanks the author and communauty.