1,581
questions
0
votes
1
answer
9
views
Unable to get data context from Template after rendering with #each in Meteor
I'm using blaze with Meteor.
Let's try the following simple setup:
<template name="render_array>
<ul class="list">
{{#each items}}
<li>{{...
0
votes
1
answer
47
views
Login forbidden after upgrading Meteor version 2.2 to 2.4
Meteor version: 2.4
Node version: 14.x
After upgrading Meteor version 2.2 to 2.4 I face some issues. In the project, I used useraccounts:core and connected with that some other dependencies. After the ...
1
vote
1
answer
93
views
Meteor Blaze dynamic template CSS results in duplicate element IDs
I was given an old Bootstrap template to make it dynamic, and I had issues with dynamic CSS with ::before and ::after selectors check the below example image
The core issue is, that it works fine for ...
0
votes
0
answers
31
views
Accessing parent Template from within {{#each}} blocks
In my code, I do the following:
<template name=A>
{{#if something}}
{{#each items}}
{{> items}}
{{/each}}
{{/if}}
</template>
Elsewhere I need to get the instance of ...
0
votes
1
answer
21
views
executing a long running server method in meteor.js
I'm developing an app where :
the client clicks on a button to trigger a long running task on the server
the server executes the long running task and updates the task progression (lets say 10% every ...
0
votes
1
answer
34
views
Why Meteor validation rules do not work on a textarea input?
I have a form with validation upon its submission, including the following:
Template.reportEdit.onRendered(function () {
$('#projectform').validate({
rules: {
serverName: {
...
2
votes
1
answer
89
views
Canvas Element-Position of Phaser Game using Blaze js in Meteor
I am failing to give the canvas created by Phaser 3.55 a declared position inside the html of my multi-paged Meteor 2.8.0 Application. My goal is to take an existing -Element and let Phaser built it ...
0
votes
1
answer
54
views
Passing reusable blaze dropdown to sweet alert 2 html
I have a simple meteor template that creates a dropdown:
<template name="Select">
<div class="input-fields">
<select>
{{#each options}}
<...
0
votes
1
answer
467
views
Pass row data down to child cell component in Grid without passing as a parameter
I have built a simple Grid component which mostly works, however I have run into a situation where I need to pass down the instance of GridRow being rendered to the GridCell to allow the GridCell ...
0
votes
2
answers
40
views
Jquery is not working without settimeout in meteorjs
I have a code in helper in meteorjs
Template.tickets.helpers({
priorityClassColour(priority) {
setTimeout(() => {
$(".Low").css('background-color', 'red');
...
1
vote
1
answer
41
views
meteor-autoform: Array contains only one entry
here is my problem.
I have an organization which must be linked to several SIRET numbers. For this I have an autoform form (version 7.0.0) which gives the possibility of linking 0, one or more SIRET ...
0
votes
1
answer
46
views
Tagging images used for search bar
I'm working with a classmate to build some kind of politicaly-related memes database where users will have the ability to tag images with hashtags, using Meteor. The purpose of this, beyond data ...
6
votes
2
answers
3k
views
Getting 'certificate has expired' error while running meteor
While downloading [email protected]...:
error: certificate has expired
While downloading [email protected]...:
error: certificate has expired
While downloading alanning:roles@1....
0
votes
0
answers
58
views
Data Context Object in Meteor-Blaze
I'm failing to understand what is a Data Context Object in Meteor-Blaze. Can someone explain what is a Data Context Object in Meteor-Blaze? I've searched in the internet yet I couldn't find any proper ...
0
votes
1
answer
41
views
Replace field in mongo db database
Helloo guys,
i have in mongo db collection:
{
"_id" : "aghpbF6xxxCyMGg9J",
"description" : "",
"name" : "test",
"roles&...
0
votes
1
answer
137
views
Exception from Tracker recompute function: ReferenceError: $el is not defined
i am following the following error when trying to filter the images posted by a certain user
the error :
Exception from Tracker recompute function:
meteor.js?hash=...
0
votes
0
answers
119
views
How does Meteor.js decide the order in which components are rendered?
I have the following code in Meteor.js written by someone else
<div>
<div> {{> yield region='tickets'}} </div>
<div> {{> yield region='ticketView'}} </div>
<...
1
vote
1
answer
1k
views
How to remove <br> tag from an empty tag in jodit editor?
Please help,
I am using Jodit Editor as a rich text editor, and I want to remove all the tags in empty tags.
Currently getting:
<p><br><p>
Expected:
<p></p>
And I also ...
1
vote
0
answers
64
views
jQuery toggle failed to hide ul element
This Meteor code is expected to show and hide a <ul id="Bulb"> element. An event fires the first time shows the element but when clicked again it failed to hid it.
Please note the ...
2
votes
1
answer
95
views
Meteor Blaze helper and Mongo collection.find with Session key selector
This Meteor code uses Meteor Blaze template helper that supplies some html elements with data from mongo collection.
The collection.findOne has Session.get as the selector so that when there is no ...
2
votes
1
answer
403
views
Meteor install with npm install -g meteor fail with 403 error
Installing meteor with the command "npm install -g meteor" as instructed on their official site, https://www.meteor.com/developers/install gives the following error.
os
win 10 pro
node -v
...
1
vote
0
answers
89
views
Is there a way to use Meteor's Blaze in a meteor project already created with React integration?
I just want to somehow use the Meteor's accounts-ui package in my meteor x react project.
3
votes
0
answers
143
views
How to dynamically create a Blaze Template from database string
I'm using Meteor's blaze viewmodel.org, a couple of years back I found a way to save blaze templates and viewmodels in database and render them dynamically, But unforuntatley I lost the code and I ...
0
votes
1
answer
251
views
FlowRouter is not defined in individual templates
Using Meteor, I started with a default Meteor project with...
meteor create --full
I added a route, in router.js, like so:
FlowRouter.route('/group/:_id', {
name: 'App.groups.show',
action() {
...
0
votes
1
answer
100
views
Blaze template, loop through fields?
I have been unable to find reference to any shortcut that might be available to loop through fields that are named "week01", "week02", "week03" where I could reference ...
0
votes
1
answer
57
views
Meteor query runs perfectly fine on server but not on client
So I have a simple server file:
import { Meteor } from 'meteor/meteor';
const Animals = new Mongo.Collection("animals");
let animalsFindOne = Targets.findOne({animal: "henry"});
...
1
vote
2
answers
426
views
Meteor.js onRendered not triggered for dynamic template on data change
I'm trying to integrate a dynamic template called "page-event" on "page-main" which depends on data from a helper:
HTML MAIN
{{>Template.dynamic template="page-event" ...
0
votes
0
answers
142
views
ostrio:files with Dropbox on Meteor
I'm trying to setup ostrio:files to work with dropbox. Can someone please explain me how to do it?
I've registered on dropbox and generated token using ostrio:files manual but I don't know how to ...
0
votes
0
answers
37
views
Strip meteor build of javascript comments
Is there a way to remove all comments (inline and block) when running meteor build? I know blaze handle bars get stripped of comments ({{!-- --}}) when compiling to html. Is there a similar way to ...
0
votes
1
answer
180
views
Why won't Meteor autoForm afQuickField Errors display on error?
In our Meteor v1.11.1 application, we are using Bootstrap 3, aldeed:[email protected], and aldeed:[email protected] in blaze to validate forms. We really want to implement the "least-custom" ...
0
votes
1
answer
40
views
Spacebars for HTML ‘disabled’ HTML input
I'm disabling textareas using the disabled HTML property.
<textarea disabled>{{foo}}</textarea>
Simple enough. That enables it so that the client cannot enter the textarea and make ...
0
votes
0
answers
37
views
Map jquery function objects and pass them to template events instance function
I have a dozen of events like this one inside a Template.instance_name.events() function :
'click .bname1': function(e, i) {
$('.course').show()
$('.course').not('.name1').hide();
},
'click ....
0
votes
1
answer
85
views
Meteor destroy subTemplate
I have a parent template which calls a child template. I want to kill the child template by the press of a button.
Parent Template
<template name="tracker">
<span id=&...
0
votes
0
answers
243
views
How can I access the object of a selected option in a select tag? Meteor & Blaze
I am trying to handle the selection of a tradingPair by using a view model helper that will call the function the pair should be sent to: select(). It is only returning object Object...
Why isn't ...
0
votes
1
answer
89
views
How to pass data variable from each to the with in Meteor?
I am trying to pass git variable to settings which is wrapping with with as shown below
If we can see right now it is setting.gitlab but i want to make it dynamically like setting.git where git is a ...
2
votes
0
answers
109
views
Confused about how subscription and publications work. I can filter data using Mongo commands but not Grapher
I have made a recipe app. I am listing all the recipes from the database. I want to add a feature that filters the recipes, to only show the user's recipes.
I have published the recipe collection and ...
0
votes
1
answer
76
views
How to get values from specified table rows in Meteor.js
In my Meteor app, I have the following table which shows some info. Users can edit company name, address and email and save the changes by clicking the button beside.
<table class="table table-...
0
votes
1
answer
784
views
How to use Chessboard.js and Chess.js together in MeteorJS using BlazeJS?
I have a fresh MeteorJS project and I have only installed chessboardjs and chessjs as follows
meteor npm install --save chessboardjs
meteor npm install --save chess.js
In my client main.js I have ...
0
votes
1
answer
146
views
Get element from array from html-file
I'm using meteor (version 1.8) with blaze.js and mongodb.
I'm trying to use an array-element which looks like this on the html file:
{{#each name in chatMeta.lastWhisp}}
<div class="...
0
votes
0
answers
75
views
App breaks links with whitelist after being running in background
I hope someone can help me. I have an app running for both ios and andorid systems. Everything works well with ios but for some reason it breaks connection with some android devices (not all) for ...
1
vote
0
answers
32
views
Meteor helper doesn't work on template as expected
I have the following code in my template's helper:
Template.ListPosts.helpers({
drawingPosts: () => {
return Drawings.find({});
},
userVoted: () => {
if(Drawings....
0
votes
0
answers
48
views
Meteor Collection fetch working after insert only
I am fetching data from Mongo Database using Collections but it not returning any data while fetching but when i insert data it then returns fetch call .
Template.message.events({
'click #...
3
votes
0
answers
154
views
Meteor packages dynamic imports fail with templating as weak dependency
The Package
I have a shared library as Meteor package with the following structure:
ui
- componentA.html
- componentA.js
- loader.js
- ...
tools
- toolXY.js
- ...
and while tools are ...
0
votes
1
answer
202
views
MeteorJS javascript function defined in package is undefined
I have created a custom package in Meteor adding javascript to the application.
My package.js:
Package.describe({
name: 'markel:theme',
version: '1.0.0',
summary: 'Theme package',
});
...
0
votes
1
answer
126
views
Meteor use tippy.js on two claases/elements
I need two tooltips with different content to appear on 4 elements which I have given 2 identical class names.
The html looks like:
<sup>
<a href="" class="fas fa-info cs-info"></a>
...
0
votes
1
answer
36
views
Meteor Method return value not reflecting on cliend side
I have written a Meteor.call() method to check if the user already exists in the system.
Below is the code
views/clientside.js
inviteEmail() {
let inviteEmailAddress = FlowRouter.getParam("...
2
votes
1
answer
106
views
Meteor method + check() + audit-argument-checks + async/await causes exception
I’m using meteor with check() and audit-check-arguments package.
When I use a meteor method using async/await and pass a parameter, even though I use check() to validate the function parametrs, the ...
0
votes
1
answer
106
views
mizzao:sharejs-codemirror throwing error in my meteor app
I just created a basic project using meteor create CodeCollab. Then I installed the "mizzao:sharejs-codemirror" package using meteor add mizzao:sharejs-codemirror command. The installation works fine ...
0
votes
1
answer
417
views
How to pass variable through template Data in meteor js?
I want to pass data through template but i am getting undefined i have two variables inside the customer template and when user click i want to pass these two var to the next template ...
1
vote
1
answer
28
views
Meteor - Best approach to publish all authors and only their last post
I’ve been thinking about this for a few days and I think my head is going to explode… I hope you can help me by bringing some light to the issue.
I´m using Meteor 1.10 + Blaze
I have a collection ...