Questions tagged [locomotivejs]

Locomotive is a web framework for Node.js. Instilled with familiar MVC patterns and a conventional file layout.

Locomotive is a web framework for Node.js. Instilled with familiar MVC patterns and a conventional file layout.

See http://locomotivejs.org/

Features

  • MVC architecture
  • Convention over configuration
  • Expressive routing
  • Routing helpers
  • Connects to any database
  • Renders with any template engine
  • Adheres to REST principles
  • Built on Express

Community

65 questions
0
votes
1 answer

Locomotive scroll issue

I have tag in my website and when click it, needs to move to one of bottom div. It's working fine and website has Locomotive scroll enabled. The problem After moving to the bottom section, it cannot scroll to top of the page. and showing some blank…
Janath
  • 1,218
  • 4
  • 26
  • 53
0
votes
1 answer

How can I call a library script after page is loaded?

I'm trying to call a library script (locomotive) in vanilla JS without Jquery, after the whole page and its assets had loaded. I've already tried with something like this: But it isn't working,…
0
votes
1 answer

Horizontal Locomotive scroll not working on mobile

I'm using Locomotive scroll library to animate gallery view horizontaly on scroll. Problem is mobile view. See the demo: DEMO const lscroll = new LocomotiveScroll({ el: document.querySelector("[data-scroll-container]"), smooth: true, …
0
votes
0 answers

Curtains.js Smooth Scroll Reactjs

I trying ton implement smooth scroll of locomotive-scroll to curtains in Reactjs. But he still doesn't work... I get errors : react_curtains__WEBPACK_IMPORTED_MODULE_2__.Curtains.disableDrawing is not a…
0
votes
1 answer

scrollTo(target, options) is not working in mobile. (Locomotive scroll)

I am facing a strange issue. On desktop, everything is working fine but when I am switching to mobile some strange things are happening, and don't know why. scrollTo(target, options) is not working at all. On desktop horizontal mode is on and for…
0
votes
1 answer

How to get scroll position and document height then run a function and update document height again?

My document height is 11886 and scroll position when I scroll to the bottom of the document is 9542. I have a function I want to run when I scroll to the bottom of the document that will increase the size of the document again and load in more…
monsaic123
  • 241
  • 2
  • 11
0
votes
0 answers

How to fix locomotive.js uncaught reference error?

I want to use locomotive.js on my project and have installed it on vscode (npm install locomotive-scroll) and have even followed this tutorial: https://www.youtube.com/watch?v=zrM6N-G6U_M&list=PLNf1MNtmy_vyQkFjuNqxKpQT0U_rbC_y8&index=19 My problem…
Hamza Khan
  • 67
  • 9
0
votes
1 answer

How to display flash message on login with passport ldapauth

So, my app uses a login through a ldap server. Once it's authenticated, I login or create a user on my database, and then proceed with my app. However, I'm trying to display a flash message when the user fails to login with ldap (invalid credentials…
G.P.
  • 75
  • 7
0
votes
1 answer

How to save a GET response to a variable on ExpressJS and LocomotiveJS

I'm relatively new to NodeJS. I've created an app using ExpressJS and LocomotiveJS framework. How would I save a certain GET response to a variable within a controller. For example: file: cartController.js var locomotive = require('locomotive'); var…
Adiv Ohayon
  • 21
  • 1
  • 4
0
votes
1 answer

Unable to resolve controller - locomotivejs (nodejs)

I am using nodejs and used the locomotivejs as a MVC Framework.. I am working in my local and when i access the url of users contrell, it will display my data.. However the problem is when i deployed it to my server using git repository, and when i…
Bogz
  • 565
  • 1
  • 10
  • 30
0
votes
2 answers

LocomotiveJS access response JSON in controller's after filter

I'm looking for a way to access the JSON being sent back to the requestor in the "after" filter for a controller. var locomotive = require('locomotive'); var myController = new locomotive.Controller(); myController.after('myAction', function(next)…
0
votes
1 answer

Routing in locomotive using ejs

I'm trying out node and some frameworks for node atm, specifically locomotive. However, i seem to be stuck on routing using locomotive. A couple questions i can't find the answer to, so here goes: why does the locomotive out-of-box install use…
Koen Cornelis
  • 192
  • 2
  • 13
0
votes
2 answers

How to add a new url to the routes.js file in an already existing Node.js project built using locomotive?

module.exports = function routes() { this.root('pages#main'); this.match('/status', 'pages#status'); this.resources('paper'); this.resources('tempform'); }; How to add a new url suppose "paper/domain" to my application? Can someone please explain…
0
votes
1 answer

How to embed ECTJS views in LocomotiveJS

I have typical installation of locomotive JS. I want to use ECTJS for views. I have successfully installed ECTJS by using following command: npm install ect --save I have following controller: var locomotive = require('locomotive') , Controller =…
Simpanoz
  • 2,729
  • 10
  • 43
  • 64
0
votes
1 answer

How to use send in Locomotive Js

How can I use send() in action of controller in locomotive Js. I think LCM only provides render(). Can some one guide me in this regards.
Simpanoz
  • 2,729
  • 10
  • 43
  • 64