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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
297 views

How to destroy marionette view rendered inside react 18 node

I have 2 way bindings for backbone.marionette and react reactToMarionette useMarionetteInReact hook when root/parent component gets rendered/destroyed React gives this warning Warning: Attempted to ...
Alexander's user avatar
  • 105
2 votes
0 answers
196 views

Failed to read marionette port(Selenium-py+Ubuntu+Geckodriver)

Im running a tiny script(See below). Every time I run it I get: selenium.common.exceptions.TimeoutException: Message: Failed to read marionette port I'm on Ubuntu 22, running Selenium 4, using ...
PythonSmellsLikeCheese's user avatar
0 votes
2 answers
105 views

is there a function to do this

I'm looking for a way to get the same functionality of the Lodash _.forIn() Method but without using Lodash. I can use Underscore however. This is what the method does https://www.geeksforgeeks.org/...
codebomb's user avatar
0 votes
0 answers
279 views

Disable smooth scroll Firefox-Selenium

I want to disable Smooth Scrolling of any page for testing purposes for firefox, I want the exact same behavior as this --disable-smooth-scrolling=true chrome's argument. With that argument, chrome ...
Carlos Garcia's user avatar
0 votes
1 answer
109 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 ...
aj soprano's user avatar
1 vote
1 answer
63 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(...
noobguy's user avatar
  • 115
1 vote
0 answers
88 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 ...
Eqaan's user avatar
  • 11
0 votes
1 answer
144 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', ...
Russell Benton's user avatar
0 votes
1 answer
77 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 ...
Radovan Babjak's user avatar
1 vote
2 answers
1k 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 ...
t2solve's user avatar
  • 667
1 vote
0 answers
49 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 ...
Giannis Papadopoulos's user avatar
1 vote
1 answer
111 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 ...
kailashdesiti's user avatar
3 votes
1 answer
1k 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 ...
Laetis's user avatar
  • 1,337
0 votes
0 answers
266 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 ...
Mopparthy Ravindranath's user avatar
1 vote
1 answer
45 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 ...
adarsh723's user avatar
  • 135
0 votes
1 answer
89 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 ...
Venkat Raman's user avatar
0 votes
2 answers
41 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, ...
Tenzin Choklang's user avatar
1 vote
1 answer
2k 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 ...
Sru's user avatar
  • 33
0 votes
2 answers
237 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 ...
Praveen Tripathi's user avatar
1 vote
1 answer
5k 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/...
Joshua Santiago's user avatar
0 votes
1 answer
62 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?
Upperstage's user avatar
  • 3,747
1 vote
1 answer
234 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(() => { ...
Tenzin Choklang's user avatar
0 votes
0 answers
87 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 ...
Tenzin Choklang's user avatar
0 votes
1 answer
121 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....
Tenzin Choklang's user avatar
2 votes
1 answer
2k 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 ...
Sven Tenscher's user avatar
3 votes
1 answer
1k 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 ...
Quinnystar27's user avatar
0 votes
1 answer
230 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 ...
tx291's user avatar
  • 1,261
0 votes
0 answers
49 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?
Himson's user avatar
  • 9
0 votes
1 answer
117 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',...
Tenzin Choklang's user avatar
0 votes
1 answer
218 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....
SamRR_75's user avatar
  • 729
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 ...
Jonas_Hess's user avatar
  • 1,874
2 votes
1 answer
853 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 ...
robor's user avatar
  • 2,979
0 votes
0 answers
92 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....
Larry S.'s user avatar
1 vote
1 answer
114 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 ...
Tenzin Choklang's user avatar
1 vote
2 answers
7k 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 ...
Tenzin Choklang's user avatar
0 votes
1 answer
170 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 ...
S.Smulders's user avatar
0 votes
1 answer
29 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 ...
Moises Ochoa's user avatar
0 votes
1 answer
225 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 ...
Sanjay Rawat's user avatar
0 votes
1 answer
1k 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 ...
chethu's user avatar
  • 416
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 , ...
Asad's user avatar
  • 3,070
0 votes
1 answer
177 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,...
Micheal J. Roberts's user avatar
0 votes
1 answer
1k 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....
Jemil Oyebisi's user avatar
0 votes
1 answer
69 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 ...
asus's user avatar
  • 1,437
0 votes
2 answers
86 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 ...
eatorres's user avatar
  • 169
0 votes
1 answer
340 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 ...
k.h.t's user avatar
  • 37
0 votes
2 answers
93 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, ...
Alexander Keefe's user avatar
0 votes
0 answers
55 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 ...
Peter's user avatar
  • 1,011
0 votes
1 answer
488 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 ...
user avatar
2 votes
1 answer
3k views

Form ready / init event on Ninja Forms - Backbone / Marionette

I am currently working with the "NinjaForms" plugin for WordPress, which provides custom form management for the backend. It's based on Marionette / Backbone JS. After some research, I had no problem ...
N. M.'s user avatar
  • 567
0 votes
0 answers
510 views

How to set up unit tests for Backbone web application

I am working on a single-page web application built with Backbone.js, Marionette.js, jQuery, Handlebars and other front-end libraries. The application uses server APIs to interact with its back-end. I ...
Irina Patrikeeva's user avatar

1
2 3 4 5
48