Questions tagged [backbone.js]

Backbone.js is a JavaScript framework with a RESTful JSON interface and is based on the model–view–presenter (MVP) application design paradigm

backbone.js
Filter by
Sorted by
Tagged with
-2 votes
0 answers
23 views

Can reactjs refresh/reload its props if the clicked link is not owned by reactjs?

Title seems confusing because it is. So I have a laravel and its own Reactjs stuff, lets call it reactA. So I have another JS that is another react, lets call it reactB, doing its on thing and render ...
Airborne STD's user avatar
0 votes
0 answers
22 views

GrapesJS builds on macOS but not on Windows 10+

I am hitting a wall on this one. I am building GrapesJS, a web page editor (https://github.com/GrapesJS/grapesjs). It builds fine on macOS but not on Windows 10+. Same version of node, latest release ...
Bernesto's user avatar
  • 1,378
0 votes
0 answers
24 views

Uncaught ReferenceError: SwaggerClient is not defined

we try to update swagger-client from 2.0 to 3.0, but after we update it started throwing error for SwaggerClient is not defined.
Sachin's user avatar
  • 109
0 votes
0 answers
26 views

Webpack: "SyntaxError: Invalid regular expression flags" during runtime

Webpack 5 Node v18.12.1 Backbone I'm trying to package a client/server website using webpack (Express.js/Backbone.js) but I get this error during runtime. Not sure where to look for the problem. [24/...
adamlucia's user avatar
0 votes
0 answers
26 views

Find Model in Backbone

I am trying to find a model object from backbone. For this I have made a method which is calling in loop and passing id to this method. initializeRepairOrder: (id) -> @repair_order = App.Models....
Divya Keswani's user avatar
0 votes
1 answer
25 views

I want to hide div after render call complete in backbone js

I want to hide div based on userId is null or not, I am getting userId from function. After loading html I want to hide one div based on condition. render: function() { userId = kf.helper....
Raj's user avatar
  • 11
0 votes
0 answers
35 views

How to add options to a Select with JQuery (Ninja Forms)

jQuery(document).on('nfFormReady', function() { var textField = jQuery( '#nf-field-3918' ); var selectField = jQuery( '#nf-field-3962' ); textField.val( 'New Value' ).trigger( 'change' ); ...
Amjed Ibrahim's user avatar
0 votes
0 answers
21 views

Template rendering in backbone view

I am using backbone as a front end in rails 7 application. In view file I am not able to load template as a path. rails view file code is - content_for :javascript do - javascript_include_tag '...
Divya Keswani's user avatar
1 vote
1 answer
15 views

How can I set an attribute on specifically the last child view of a Marionette CollectionView?

I have a Marionette CollectionView with a child view: const BreadcrumbListView = Marionette.CollectionView.extend({ ... childView: BreadcrumbView, ... }) const BreadcrumbView = Marionette.View.extend(...
Addison's user avatar
  • 31
0 votes
0 answers
31 views

Uncaught TypeError: App.Routers.Maintenances.MyRouter is not a constructor

I am using backbone js as frontend in rails 7 application. In index.html file I have called backbone main file. code is coming in this file. But here I have initialise router file. In which getting ...
Divya Keswani's user avatar
0 votes
1 answer
57 views

How to trigger an event on a form contained in a modal that updates a user's email address

I am working with an old code-base that has a tech stack of Backbone JS, jQuery, and Bootstrap. I have a bootstrap modal that I am using to update an email address on my server. I can't figure out how ...
M Stone's user avatar
1 vote
1 answer
21 views

How to pass data to a View in Backbone.js?

I am trying to pass data to SingleTodo view in Backbone.js. But, it is not passing properly. For more clarity, please see the code and outputs given below. Code: temp.html <h1>This is Temp</...
Deepanshu Yadav's user avatar
0 votes
1 answer
82 views

How to handle server's request for logout confirmation in Backbone

I've got a project comprising a servlet/restlet back end (written in a Java8 framework) and Backbone front end. The Backbone has a "Logout" button to terminate the user's browser session ...
Gaz's user avatar
  • 328
0 votes
1 answer
54 views

How to customize pagination by hiding numbers

I want to customize the bootstrap-table pagination by hiding numbers and show next, previous,first and last like : enter image description here I want to customize the bootstrap-table pagination by ...
user19134451's user avatar
0 votes
1 answer
24 views

Understanding Sort and comparator in Backbone.js

I'm trying to understand sort and comparator in Backbone.js. I've seen many answers online but I have been unable to get any of them to work. Working with the jsfiddle of the classic "ToDo" ...
magic's user avatar
  • 37
0 votes
1 answer
84 views

How to write simple functions in Backbone.js?

I am working with some legacy website which is using the Backbone.js framework for the frontend. I'm new to the frontend and Backbone.js seems very confusing when compared with simple JavaScript. ...
DNèp's user avatar
  • 41
1 vote
2 answers
50 views

How to turn off hover if on click event is active in Jquery?

I have an icon name tag-icon-arrow i have onclick and hover events on it. But since i hover over the icon the hover is active and when clicked both are active which i don't want, I know before ...
SDP's user avatar
  • 25
0 votes
1 answer
54 views

bind attribute in custom event

In Sugarcrm (backbone.js) I am trying to get custom attribute (user_id) from List (in .hbs file) <div class='dropdown usersLegend'> <ul class='dropdown-menu'></ul> ...
neeraj's user avatar
  • 353
0 votes
2 answers
34 views

what is a backbone.undo.js object/model/collection and how do I register it?

I'm trying to use backbone.undo.js to implement undo and redo function into my html/javascript web app. I understand that I need to do this //Instantiate your UndoManager var undoManager = new ...
Joshua Robison's user avatar
1 vote
1 answer
65 views

How to properly describe events in Backbone views with JSdoc?

I am describing JavaScript code that uses the Backbone framework. I am wondering how to document events that are declared in my views. Let's say I have a class with this events: define([], function(...
Fill Freeman's user avatar
0 votes
1 answer
182 views

Migration from lodash 3 to lodash 4: what replaces the 'lodash/string/template'?

We try to migrate one Backbone.js project from lodash "3.10.1" to latest lodash "4.17.21" and seems like 'lodash/string/template' was removed in version 4. In our code we have ...
Vlado's user avatar
  • 3,637
0 votes
2 answers
52 views

I am trying to sort my collection when I add a new object to it, but it is not sorting and there are no errors

in my Backbone view, a user can add a new educational research opportunity by hitting a button. Each research opportunity has a sequence in the database and this is how it's ordered on my page. When I ...
SkyeBoniwell's user avatar
  • 6,774
0 votes
2 answers
33 views

How can I tell my javascript to wait until the server is done?

In my web app, I have a page where users can copy books from their library. On the website, when a user clicks the copy button, the app executes this bit of Backbone.js code: clonebook: function () { ...
SkyeBoniwell's user avatar
  • 6,774
0 votes
0 answers
27 views

How Redirect to another codeigniter controller after submitting data in backbone.js

Ive created a backbone application that sends form data to the codeigniter backend for verification using a MySQL database. Below is the authenticate event of the backbone view that will be called on ...
Kavishka Rajapakshe's user avatar
0 votes
1 answer
29 views

what is the event name for typing on a textfield on a view in backbone.js?

Ive created a view that displays information about quizzes I got from MySQL database. In order to search for a specific quiz I have implemented a search bar in a new view called MyQuizSearchView. ...
Kavishka Rajapakshe's user avatar
1 vote
1 answer
66 views

View not initializing in Backbone.js

Ive created a simple backbone app that gets data from MySQL database about users to display in a view called LeaderBoardView. Below is the HTML code for the view, <body> <div id="...
Kavishka Rajapakshe's user avatar
1 vote
0 answers
12 views

Data not appending to url when sending through Jquery and Backbone

Ive created a simple backbone.js app to check how it works. The application lets user search for a book by title in MySQL database. The application contains a text field and a button as such, <...
Kavishka Rajapakshe's user avatar
0 votes
1 answer
90 views

Problem trying to access javascript modules inside a Backbone.js view template using Webpack

I'm doing some maintenance on a Java web-application composed of JSON APIs and a UI based on Backbone.js and React, bundled using Webpack. This application has a single main page, index.html and a ...
TituX75's user avatar
0 votes
1 answer
103 views

How to align dropdown button to content in Bootstrap 5?

I am upgrading bootstrap from 4 to 5. I found that data-toggle="dropdown" needs to be changed to data-bs-toggle="dropdown". My problem is after I did the upgrade one of my dropdown ...
Amy Middleton's user avatar
1 vote
1 answer
60 views

My Backbone Routing forgets everything when I hit the browser refresh button

I have an older web app that is a mix of Backbone and .Net 6. When I first start the app in Visual Studio 2022 for development, it loads fine and everything works great. I use Backbone routing and a ...
SkyeBoniwell's user avatar
  • 6,774
1 vote
0 answers
193 views

How to set a default option value for a backbone select in wordpress media library attachment filters?

Wondering if it's possible to trigger a default option for this backbone dropdown in the wordpress media library. I've created a new filter for "years", and it would be great if I could set ...
ogdsgn's user avatar
  • 11
0 votes
2 answers
1k views

How can we hide scroll bar arrows but retain the scroll bar in html?

I have html code which shows scroll bar but has the following look and feel I wish to remove the arrows of up and down but retain the scroll bar . How can this be achieved .
MAG's user avatar
  • 2,971
0 votes
1 answer
849 views

How to create a blob from a base64 string; javascript

Basically what the title says; I have a base64 string that encodes an image and I want to convert it into a blob so I can pass it into my File constructor. I realise many similar questions have been ...
aj soprano's user avatar
0 votes
1 answer
79 views

how to have template helpers change dynamically? backbone.js

I have a template helpers method in my view like so: templateHelpers() { return { url : this.model.get('url') }; } And I use the url variable in my template; However, the URL ...
aj soprano's user avatar
0 votes
1 answer
126 views

PhpStorm: Highlight Elementor Backbone Templates

Is there a way to highlight Elementor Backbone templates in PhpStorm? The code is gray and sad at the moment.
user557108's user avatar
  • 1,205
0 votes
0 answers
435 views

Scroll area in js

I have a page in js . I wish that whenever I scroll I define how much of the page is scrolled . I don't want that I handle the scroll event , keep a state of old location , detect direction and then ...
MAG's user avatar
  • 2,971
1 vote
1 answer
149 views

Underscore.js template variable name is being escaped causing it to not get rendered

I am playing around with rendering templates using with Underscore.js (Backbone.js app). I'm running into the following issue, where a part of the variable name in the template I am trying to render ...
Vin's user avatar
  • 31
0 votes
0 answers
39 views

Jquery Datatable : navigating to next page throws RangeError

I have limited understanding of Jquery and DataTables and have run into a strange issue. Hoping someone can help me resolve or point me in right direction. I am using Backbone.js and made an ajax call ...
user1462617's user avatar
0 votes
1 answer
30 views

Why is scrolling to top not working html?

I have a html which is a table with left & right side. on left side chapter names exist an on right all chapter content exists . when i click on a chapter on left i wish to see that chapter on top ...
MAG's user avatar
  • 2,971
0 votes
1 answer
33 views

Why am I having a problem accessing $el in my view in BackboneJS?

I'm trying to utilize the append method through the el in the BackBoneJS view. I'm using Handlebars. When I run my code, I get this in the console: main.js:14 Uncaught TypeError: Cannot read ...
Joshua Cushing's user avatar
1 vote
0 answers
25 views

Why can't I access the attributes of this BackboneJS model?

I'm new to BackboneJS. I'm trying to build a model and view, understanding how they work as I build them. If I create my model like this: const VideoViewerModel = Backbone.Model.extend({ ...
Joshua Cushing's user avatar
0 votes
1 answer
945 views

"Module not found" when migrating to Webpack 5

I am trying to migrate my React app to webpack 5.72.0 (from 4.42.1). So I also have webpack-cli (4.9.2), webpack-dev-server (4.8.1) and babel (7.17.9). My problem is as follows. When I build my ...
ChambreNoire's user avatar
0 votes
0 answers
27 views

Cross-Origin Read Blocking (CORB) in backbone.js [duplicate]

When I call the function sites.fetch() in the google console this error appears Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.nutritionix.com/v1_1/search?callback=...
Arthur Lima Silva's user avatar
0 votes
0 answers
18 views

Backbone fetch() error when get JSON file from Google-Drive [duplicate]

When use <link rel="stylesheet" type="text/css" href="https://drive.google.com/uc?export=view&id=[stylesheet - ID]"> //True and use <img class="item-...
Majd Al-Atrash's user avatar
0 votes
1 answer
114 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
67 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
0 votes
0 answers
307 views

Handling multiple keydown events on same key one at a time

In my project i have multiple events binded on window escape keydown pressing , and all of them are executed at the same time when escape key is pressed. I need to make this events to fire only one ...
ShokeR's user avatar
  • 11
0 votes
1 answer
20 views

Backbone Model.fetch() - how does it take care of duplicates

As per the backbone js documentation, model.fetch() merges current model's state with server if different exists in the attributes. Question 1: Is there a way I can tell backbone to overwrite the ...
user1462617's user avatar
1 vote
0 answers
21 views

testing backbone.js view anonymous events with jasmine

How can i access click event outside the template scope. What i have : HTML : <div class="right_btn"></div> <div id="template_loader"> <!-- HTML template ...
user6927845's user avatar
1 vote
2 answers
170 views

console log messages not being shown in browser console

I have this function in my Backbone view for creating a new object through an API in the backend: // *** called when remote hardware signal triggered createConference: function () { var self = ...
SkyeBoniwell's user avatar
  • 6,774

1
2 3 4 5
413