Skip to main content
0 votes
0 answers
54 views

Not hitting the correct endpoint with wp backbone models using wp.api.models.Post.extend

I'm creating a plugin that has a custom post type called tasks. I would like to use backbone.js models to perform crud operations to tasks via wp rest api. When I try to extend the models, following ...
ChadTheDev's user avatar
0 votes
0 answers
19 views

Strange behavior and rendering on model.set() command

At the beginning, I've added a property to the model: this.model = new Model() this.model.set("level","test") In another routine, I've to refresh this "level" property ...
Frédéric H's user avatar
1 vote
1 answer
49 views

Inserting unique attribute to HML tag element in loop

I have a supersite that uses all kinds of js, including backbone.js and underscore.js. On one of my pages, I have the piece of code below: <#loop:main_tlds_price_add#> <tr> <td ...
adeguk Loggcity's user avatar
1 vote
0 answers
40 views

How does triggers clicked worked in backbone.js

Recently, I have got a rails project project with backbone.js and CoffeeScript to support however I don't have previous work experience with backbone.js. Some of model relationship of the projects are:...
morshed's user avatar
  • 31
0 votes
2 answers
45 views

Using javascript template file, how can I check for a null or an undefined value?

I am using a Javascript HTML template engine. How do I check for null or undefined in my HTML? If ctx.m.transferTicket is null or undefined, I want to treat that as being false. SO I have this code {%...
SkyeBoniwell's user avatar
  • 7,142
1 vote
2 answers
43 views

Sort Backbone Collection based on a file order list

I have a inherited a system that utilizes a Backbone collection of files that needs to be sorted based on a series of values. The order variable is saved when you slide different files into a position ...
xtine.k's user avatar
  • 39
1 vote
0 answers
66 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,446
1 vote
0 answers
118 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
1 vote
1 answer
32 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
  • 21
1 vote
0 answers
125 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
1 vote
1 answer
27 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
1 vote
0 answers
35 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
152 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
26 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
108 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
  • 327

15 30 50 per page
1
2 3 4 5
1372