Questions tagged [senna.js]

This tag is to be used in questions about Senna.js, the Single Page Application engine.

senna.js is "a blazing-fast Single Page Application engine."

http://sennajs.com/

7 questions
8
votes
1 answer

How can I disable SennaJS/SPA in Liferay 7?

Liferay 7 uses SennaJS as its Single Page Application engine in order to load and replace certain parts of the portal page during form submission and navigation. Occasionally this feature interferes with my use case, so how can I disable it?
stiemannkj1
  • 4,418
  • 3
  • 25
  • 45
1
vote
0 answers

How to prevent multiple event listeners on Liferay SPA SennaJS?

I want to fire a function every time I change a page in Liferay. Liferay.on('endNavigate', function(event) { functionToExecuteOnEveryPage(); }); It works, but every time I change the page the event 'endNavigate' is invoked multiple times. The…
Mustapha Aoussar
  • 5,833
  • 15
  • 62
  • 107
1
vote
1 answer

PrimeFaces markup remains after navigation in Liferay 7.0

I've noticed that when I navigate via GET from a page with certain PrimeFaces components, the markup of these components will appear in the upper left-hand corner of the next page. This problem has happened with the following components (and…
stiemannkj1
  • 4,418
  • 3
  • 25
  • 45
1
vote
1 answer

How to stop Senna.js from calling multiple jQuery event handlers

I have developed a SPA website using Senna.js and it works great! However, I have recently noticed that it doesn't remove jQuery event handlers when leaving the page. So I have all kinds of functions firing twice when I navigate back to a page I…
logicPwn
  • 103
  • 1
  • 8
1
vote
3 answers

Prevent a click on a link from jumping to top of page in Sennajs

I'm a newbie to javascript, so please forgive if I ask things that are painfully obvious. I am using Sennajs for my personal project. I have a issue like in gallery example. When click a link, it makes the page jump to the top. I used to use this…
bachcao
  • 133
  • 1
  • 2
  • 6
0
votes
1 answer

Senna.js Support for Two Way Data Binding in Liferay 7.0?

After looking around at Senna.js documentation I couldn't find any indication as to whether the framework has support for two-way data binding, in the context of Liferay 7.0, like Angular2 and React. Has anyone looked into this? It'll be great if…
netlander
  • 1,128
  • 1
  • 11
  • 12
0
votes
1 answer

How avoid 404 when using history API HTML5

In SennaJS and EmberJS both using History API. How those libraries avoid 404 when a URL is pasted in address bar.
flpms
  • 256
  • 2
  • 17