9

Trying jQery in Electron = Disaster....

Comments
  • 0
    Why not? I use jquery in electron all of the time
  • 0
    @fyroc I'm currently trying datepicker in Electron from one example. It fucking work in normal browser but not in Electron. Done with the jQuery thing still not working... No idea whats the reason no error in console nothing even jQuery is working but not for thay datepicker
  • 0
    Are you including jquery correctly? It's not done like a normal website.
  • 0
    Yea, I've done that. I think the problem is with other dependencies.
    Tried one click example it's working fine. But something is wrong with datepicker... It's just not popping up lol
  • 0
  • 0
    Is jquery-ui installed as a dependency?
  • 0
    Nope.... I need that too?
  • 0
    Date picker is a jquery ui thing
  • 0
    But but... It work perfectly fine if i run it normally in browser.
  • 0
    Fml, my English is bad I'm confused between "on browser" or "in browser"
  • 0
    Nvm, got ng-flat-datepicker. But, still don't know why that example is not working tbh...
  • 0
    Because it's JavaScript
  • 0
    Even, i had one problem yesterday about slow rendering for angular solved using normal for loop... Fml
  • 1
    @lazysnail try Flatpickr, awesome date picker that works with jQuery
  • 0
    @fyroc can you help me for one thing? Electron with AngularJs is good? or should I go for other library/framework?(I'm using MongoDb).
  • 0
    @lazysnail Angular is great for Electron. Check this out.

    https://github.com/baseljs/basel

    This is a framework using SQLite but should be easy to implement mongodb
  • 0
    @fyroc I just tried packaging the app its fucking big.... 80MB...
    And even it didn't took CDNs which i used(don't know it should take or not) or I have to add them all manually?
  • 0
    @lazysnail Electron apps are always going be huge. I think the smallest I got was 35mb. Remember that it's basically a mini node web server.
  • 0
    @fyroc I think I'm doing something wrong or maybe the whole idea is wrong lol.
    I have REST api(node and express) and I'm using that to fetch results from mongodb. But after packing why it's not working or I've to do other thing to make it work?
  • 0
    Do you have CORS enabled on your API server
  • 0
    @fyroc Solved that after 3damn hours, don't know why but packager didn't took one dependency so I put manually. It's working fine now.
    But, I'm thinking I'll build this in Angular2. And Thank you very much for answers and suggestions, i really appreciate that.
  • 0
    @ChainsawBaby also works without jquery as well
Add Comment