Questions tagged [marionette]
Backbone.Marionette is a composite application library for Backbone.js that aims to simplify the construction of large scale JavaScript applications. Do NOT use this tag for Firefox's Marionette driver. Use the firefox-marionette tag instead.
2,389
questions
0
votes
0
answers
13
views
Marrionete(Vectorworks) changing/creating my own node python
Python is used in Vectorworks (Marionette) and there are already finished nodes to do alot of visual programming but at some point you need to create your own nodes or im not experienced enough to ...
0
votes
0
answers
8
views
how to split require.js project into multiple small bundles?
Currently we are bundling our backbone application into a single script.js file, using r.js (require.js optimizer)
Below is the build configuration file we are using for it
({
baseUrl: './',
...
0
votes
0
answers
25
views
Check the name of the favicon displayed in the browser tab
In a website's source code, there are several icons linked:
<link rel="icon" type="image/png" sizes="192x192" href="mysite.net/assets/icons/android-icon-192x192....
0
votes
1
answer
54
views
object is possibly undefined error when trying to declare a variable in backbone model
I am using a backbone model:
export class test = Backbone.Model.extend({
defaults: {
name : ''},
x = 'test'
)}{
function(){
console.log(this.x)}
}
However I get an error on the ...
1
vote
1
answer
39
views
jquery ui datepicker not appearing on click with marionette/backbone
Using marionette and trying to display a jquery date picker. However, when I click on the input, the calendar does not appear.
This is my view:
const view = app.Views.Layout.extend({
template: require(...
0
votes
0
answers
461
views
Uncaught TypeError : r is not a constructor when code is separated in 2 files
I am having the following error :
signOrderView.js:20 Uncaught TypeError: r is not a constructor
Here is the signOrderView.js :
define([
'jquery',
'so!lib_dev/backbone.marionette',
'doT!...
0
votes
0
answers
43
views
Bind to Backbone Marionette's UI hash using StickIt
I'm building a Backbone.js (v1.3.3) app with Marionette.js (v3.5.1) for view rendering and backbone.stickit for two-way data binding.
Is there a way to bind to Marionette's ui hash using stickit ...
0
votes
0
answers
34
views
Selenium - springboot : firefox not installed. Please install it before using bot: Except: Process unexpectedly closed with status 0
Sometimes i get this error, I found that it's because the port choosed by Marionette to listen is already in use by another service that isn't firefox. That's why Selenium throws that error.
I guess ...
1
vote
0
answers
57
views
Select2 custom data fetch when user starts typing in search bar. (BackboneJS / Marionette collection) SELECT2
I am using SELECT2 in BackboneJS/Marionette. Right now following is flow:
Current:
From parent, call FETCH method of COLLECTION. When fetch is completed then send this COLLECTION to a new VIEW and ...
0
votes
1
answer
75
views
Custom thumbnail CKFinder 3, custom file type
I have custom file types, or a file type that doesn't support thumbnails because ckfinder only supports image type.
So file:getThumb only gets called on image file types
finder.on('file:getThumb', ...
0
votes
1
answer
52
views
Marionette - combining CollectionView with View
I'm new to marionette and I would like to generate CollectionView inside a CollectionView.
I read that if a view gets collection as argument it stores it as 'items' argunemt. My problem boils down to ...
1
vote
2
answers
630
views
WebDriverException: Message: Can't load the profile. Possible firefox version mismatch. You must use GeckoDriver instead for Firefox 48+with Selenium
I tried to follow an example how to parse websites via python and selenium.
But I am running always into the following problem: calling the function webdriver.Firefox
opens a firefox instance, but no ...
1
vote
0
answers
45
views
Is there anyway to make selenium without headless mode on Firefox? [duplicate]
When i run my script on Python using Selenium it appears that Firefox understands that a bot is taking over. Is there any way i can bypass that?
firefox_capabilities = DesiredCapabilities.FIREFOX
...
1
vote
1
answer
61
views
How to bundle an backbone application
We have a backbone application with require.js for loading js, while loading this application on chrome it takes around 30 seconds to load the page completely.
On inspecting the network tab I found ...
1
vote
1
answer
653
views
How to remove the rust_mozprofile used by Selenium
I have used selenium with python for a while and I recently discovered that my tmp dir is full of rust_mozprofile directories. How can I have them deleted on the fly?
I read in another post that I ...
0
votes
0
answers
147
views
marionette js -- Fails after upgrading Jquery to 3.4.1 from 1.11.1
In an old legacy project created with backbone and marionette 2.4.1, we were using jquery 1.11. Due to security scan, we are asked to upgrade to latest JQuery. But after upgrading, the pages are not ...
1
vote
1
answer
35
views
Populating data from two different url in a backbone collection
I have a Marionette.LayoutView which calls a backbone collection and fetches the data and renders based on response. Now the issue that I am facing is, this collection needs to get data from two ...
0
votes
1
answer
65
views
How to retain the form values in Backbone js?
I have a customer-listing page with a filter button and the button will trigger a dialog to input the parameters for search.
Once I apply the filter (ajax process), the results are filtered and ...
0
votes
2
answers
27
views
backbone, is there a side effect to triggering and event that there is no listeners for
So in backbone when we go to trigger and event lets say
this.trigger("do:something")
what if there are no listeners for this, obviously there are no errors thrown, but are there any side effects, ...
1
vote
1
answer
1k
views
Marionette-WARN-TLS certificate errors will be ignored for this session warning using GeckoDriver and Firefox through Selenium and Java
Iam a beginner in Selenium WebDriver. I wrote a code to just navigate to a URL and login to that. Also to show a message in console of the string URL is correct as the current URL. The code is ...
0
votes
2
answers
150
views
Is there a way to re-render child view on any custom JQuery event in Backbone/Marionette?
I want to re-render my child view that is being rendered in a composite view on $(window).resize() event which I have subscribed in onShow() of my composite view. Can we do do that? if yes, is there a ...
1
vote
1
answer
3k
views
Can I run Selenium using geckodriver without a webpage detecting marionette?
I want to use FirefoxDriver with Selenium but I keep getting detected by webpages. When I add the following code
System.setProperty("webdriver.gecko.driver", "../../../../../../../usr/bin/...
0
votes
1
answer
43
views
Do Marionette CollectionViews have a templateContext?
I can provide a templateContext to other Marionette views, but the CollectionView does not seem to take advantage of it when provided. Do Marionette CollectionViews have a templateContext?
1
vote
1
answer
177
views
Marionette onAttach lifecycle not fired during testing
I am writing tests in which I have some logic inside the onAttach lifecycle method, but when testing the onAttach is never called.
This is how I initially tried to test it
beforeEach(() => {
...
0
votes
0
answers
62
views
Marionette how to render regions in Order
Marionette is there a way to render regions in order? If one region needs a DOM element in another region. Right im now triggering an event to render it in order, but is there any better way to ...
0
votes
1
answer
90
views
Marionette document.querySelector('#test') returns null but doing this.$('#test') does not
I have a simple marionette ItemView,
import Marionette from 'backbone.marionette';
import Tabs from '@component/tabs/src/js/views/Tabs';
import template from '../../../templates/partials/one/tabs....
1
vote
1
answer
1k
views
WebDriverException: Message: Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" while saving a large html file using Selenium Python
I'm scrolling through the Google Play Store and the reviews for an app, specified by the URL to the app page. Selenium then finds the reviews and scrolls down to load all reviews. The scrolling part ...
1
vote
1
answer
823
views
WebDriverException: Message: [(NS_ERROR_FAILURE)" location: "JS frame :: chrome://marionette/content/proxy.js] with Selenium GeckoDriver and Python
I am downloading multiple reports from a website. Each report has its own URL. Some URLs are loading fine without a problem.
But there is one URL that produces the following error. All URLs have the ...
0
votes
1
answer
217
views
Cannot read property 'length' of undefined error when passing collection of models to a CollectionView in Marionette
I am working in Backbone/Marionette and have a Collection, where I am parsing data, and creating a collection of models, which I then pass to a CollectionView, and a childView is set for that ...
0
votes
0
answers
31
views
Where can i find backbone.marionettejs tutorial?
Would I like to find some introduction and advancing [marionette] tutorial? Where can I find them? Any recommendations?
0
votes
1
answer
87
views
marionette collection event not firing
Marionette collectionEvents are not firing when the collection is defined inside the initialize function.
ex:
collectionEvents: {
update: 'onCollectionUpdate',
change: 'onCollectionChange',...
0
votes
1
answer
115
views
BackboneJS View - Uncaught TypeError: Cannot read property 'get' of undefined [duplicate]
I have the following Backbone View with a render function that looks like the following:
render: function () {
this.emptyContent();
if (this.model.get('ChatsInQueue') == -1) {
this.model....
0
votes
2
answers
1k
views
Java Selenium error with Firefox-Portable
I am struggling to get our integration tests back up and running after updating our heavily outdated FirefoxPortable to the newest version 68.0.1.
I was understood to use the geckodriver. But I keep ...
2
votes
1
answer
658
views
Why does jquery.blockUI swallow onClick event?
Summary Using jquery.blockUI seems to hide / swallow / mask button click event.
Tech Stach
backbone and marionette
backbone.radio
underscore
jquery
jquery.blockUI
(all latest version)
The App
...
0
votes
0
answers
46
views
How to write Jasmine unit tests for this block of code
I need help understanding how to design test for this piece of code:
onSuccessHandler(response) {
if (response && this.cartModel.hasData(response)) {
const data = this.cartModel....
1
vote
1
answer
81
views
How to trigger a backbone keyup event
I am trying to test a backbone/marionette application using jasmine,
I am trying to trigger an 'keyup' event and expecting a method to be called. but when i try to trigger an even like so after ...
1
vote
2
answers
4k
views
How do i open a <select> menu in by pressing enter on keyboard
For a menu in html, clicking on the select will show the drop down with options, but how would I trigger this by clicking on the enter key. I have tried setting up a keyup listener which would then ...
0
votes
1
answer
127
views
How to fix 'this.stickit() is not a function' error in Backbone.stickit
I am trying to use backbone.stickit together with Marionette but somehow it doesn't recognize the stickit function. I keep getting the error:
this.stickit() is not a function
I am using versions ...
0
votes
1
answer
26
views
How to call a Layout from itself to make an instance
I have a Layout(SubMenu100) that have an event to call other Layout(SubMenu200), but it also make a onClick trigger that will create an instance if layout(SubMenu100) and call itself, but I don't know ...
0
votes
1
answer
178
views
Is there any alternative for "onDomRefresh" event (in Marionette) in backbone js?
Marionette js has a "onDomRefresh" event which can be used after the view has been rendered.
I'm looking for something in Backbone which can be used as a alternative to "onDomRefresh" since I don't ...
0
votes
1
answer
918
views
How to return variable value outside api function call using jquery or javascript
module.exports = function (ctx, application) {
var API;
var usermandData = [];
var clientmandData = [];
var taskmandData = []
API = {
GetMandatoryFieldsforUser: function () {
return ...
0
votes
0
answers
31
views
Where I can find the body of triggerd event in MarionetteJS
I am new to MarionetteJs I have code in my project
_onClick: function(event){
this.trigger('selected');
}
Where I can find the body of this event , I want to go the definition to this event , ...
0
votes
1
answer
152
views
Issue binding this.getPlace() of an autocomplete places Object within backbone.js and Marionette
I'm currently working on building a custom places autocomplete field utilising the Google Maps Places API for the Wordpress plugin Ninja Forms. Ninja Forms uses backbone.js and Marionette to listen to,...
0
votes
1
answer
817
views
404 Not found while instantiating web worker in backbone.jsI
I was trying to implement web worker in a backbone.js project and I got the error message src/js/worker.js 404 (Not Found)
I created a worker.js file and I have the code below in the file
this....
0
votes
1
answer
47
views
Backbone.js - get childElementCount value in devTools to print
I trying to log childElementCount property in chrome dev tools but I get undefined.
this is my code:
console.log('childElementCount---', this.ui.tbody.get('childElementCount')
returns ...
0
votes
2
answers
65
views
How can I replace RegionManager instances on Marionette 3
I am currently upgrading a project from Marionette v2 to v3 but it seems all of the functionality of the region manager was added into the View class.
My project has several instances of
...
0
votes
1
answer
146
views
Trigger a child view model method in the parent view : MarionetteJs
I have a Marionette view SingleCategoryView that takes a collection and renders a Collection view optionsView.
the optionsView is a list of an itemView optionView.
In my SingleCategory view I have ...
0
votes
2
answers
51
views
What is the best way to find where things are in a large Backbone codebase?
I just started my first dev job, and I’m kind of overwhelmed. I don’t really understand how I’m supposed to find where things are in the code. For example, if I load a certain page of the application, ...
0
votes
0
answers
52
views
Single page grails application, render templates deferred
I have a grails application with bootstrap and marionette.
The whole application is a single page application.
The concept worked very well in the beginning. But now I have lots of pages and the ...
0
votes
1
answer
388
views
Converting Handlebars to React Mapping Syntax
Getting an error at the following line:
data.Values.Volumes.map((volumes, index) => (
Syntax Error Unexpected Token, expected ,"
This code works if I remove one of the two data.Values mappings ...