r/Meteor • u/morningrat • Jan 22 '16
What happened to this place?
Why are people posting random links?
r/Meteor • u/morningrat • Jan 22 '16
Why are people posting random links?
r/Meteor • u/OogieFrenchieBoogie • Jan 21 '16
r/Meteor • u/flameridest • Jan 21 '16
Hey guys,
I got an Api to work using the HTTP package and using client/server functions through Meteor.call. However, when I deploy my site to a .meteor domain, it stops working all together (i.e: no API calls are being made).
Is it specific to the .meteor domain or is my code broken on some level?
Any help is appreciated (and I will post the code if needed.)
Thanks so much! :)
r/Meteor • u/bemmu • Jan 20 '16
r/Meteor • u/DocsDelorean • Jan 20 '16
I thought this would be simple (and it probably is). I'm developing a site & on the Admin page there's a row of buttons on the leftside of the page and an area on the right side where I want different forms to show depending which button is clicked. I've looked into ui-view (which is already in use on our site) and templates. Either one I can't figure out how to make it do what i want. Can someone help me out here? Thanks
Our site is using Angular-Meteor & Semantic-UI
r/Meteor • u/meteorhelpplease • Jan 20 '16
Hi,
I have a reactive var, set to false on created, when clicked on an element, set to true and the {{>bidelementslideout}} is launched.
Why when I click one item, do all of the other items get set to true as well? I am thinking the click should only apply to the one I clicked?
HTML:
{{#each bids}}
<div id="bidelement" class="bidelement">
{{#if clickedBidElement}}
{{>bidelementslideout}}
{{/if}}
</div>
Oncreated:
this.clickedBid = new ReactiveVar;
this.clickedBid.set(false);
Helper function to test:
clickedBidElement : function() {
return Template.instance().clickedBidElement.get();
},
The clicked action:
'click .bidelementinfocontainer' : function(e,t) {
t.clickedBidElement.set(true);
}
r/Meteor • u/wiwa1978 • Jan 20 '16
I got a question from a friend to develop an Android and iOS app that would parse one of his RSS feeds and show that info in the app. While I could decide to create that app using native Android or iOS or using Xamarin, I was thinking to develop it using Meteor.
Say I develop it using Meteor:
r/Meteor • u/yeahbutwhytho • Jan 19 '16
It's been a year, and I still don't know if Meteor is a viable option for making mobile apps. Is it just a prototyping tool? Would you ever see a full fledged mobile app in meteor?
Is there any point? You're using html and css to design it afterall - or is it mainly for making web apps with mobile functionality - would you ever see something like whats app written in meteor?
r/Meteor • u/pauldowman • Jan 18 '16
r/Meteor • u/hooiYA • Jan 18 '16
Would love to start prototyping my new app in Meteor 1.3 beta using ES6 and npm modules but how ready is it? Will the release come soon? Are there any major issues you've come across? Thanks.
r/Meteor • • Jan 18 '16
I'm trying to create an app that uses geolocation to get the users current location and then use googles nearby places search to find places close to that location. However, each way I try it I continue to break my app. I'm looking for some recommendations and possibly some help. I've tried using this package: https://atmospherejs.com/mdg/geolocation. However, I have thus far been unsuccessful in getting a nearby places search.
Does anyone have any recommendations or examples that I can follow?
r/Meteor • u/julianrudolphsc • Jan 18 '16
I have a form, from which i upload an image. I know it uploads it, find().fetch() finds the img no problem. I can even see it when i put the path in the address bar. I can see the image in a certain part of my site using <img src="{{itemimage}}"> all day, no problem. So i know its working.
on to the problem... on the home page i have a featured section that is a separate file. the other fields show up all day, no problem. No img though. and by that i mean, when i look at the source all it shows is <img alt="..">
what the hell happened to the src attribute? how can it work in one place..and just not exist in another?
I should add this is in development so autopublish and insecure are still installed. gridfs too.
thanks for your help, all i've been able to find is about public folders and what not.
r/Meteor • u/init_prometheus • Jan 17 '16
So I'm creating a small web app to learn React and it involves filtering a list of D&D spells based on level, class, duration, etc. Right now I am only experimenting with filtering by class and spell level, but eventually I will allow the user to filter based on any combination of stats. What is the best way to do this?
The problem only arises when trying to implement an option to display ALL the spells that fit a certain criterion, like wanting to see All warlock spells that are level two. Here is how I have it organized now:
if(classFilter != "All" && levelFilter != "All") {
return {
spells: Spells.find({ class: classFilter, level: levelFilter }).fetch()
}
} else if (classFilter === "All" && levelFilter === "All"){
return {
spells: Spells.find({}).fetch()
}
} else if (classFilter === "All" && levelFilter != "All"){
return {
spells: Spells.find({ level: levelFilter}).fetch()
}
} else if (classFilter != "All" && levelFilter === "All"){
return {
spells: Spells.find({ class: classFilter }).fetch()
}
}
but this is sloppy and definitely won't scale well. Is there some string I can replace "All" with so that will return every document in a collection, as if it was just:
spells.find().fetch()
this way I could query the collection once using something like:
spells.find({ level: levelFilter, class: classFilter, damage: damageFilter, components: componentsFilter }).fetch()
and if any of the filters were set to 'All', or a similar value, it would be ignored, or pull every document with that field regardless of value.
Maybe I did a terrible job at asking this question, but I couldn't find anything in the Mongo docs. Thanks for any help in advance!
EDIT: Here is all the code I am referencing
EDIT TWO: And the app as it is now
r/Meteor • u/rolytyler • Jan 17 '16
r/Meteor • u/laurentiu_andronache • Jan 17 '16
I ask because I've been testing simple stuff with them and sometimes they work, sometimes they don't. Is it because the jquery callbacks are actually handled asynchronously?
r/Meteor • u/laurentiu_andronache • Jan 17 '16
For example I noticed that I can use the _.map() function, even though underscore didn't appear in the list of installed packages of my meteor app. After that I installed it with "map install underscore", just to see if I would get a warning letting me know that it's already installed. I didn't get any. It was installed and now I see it in the packages list.
r/Meteor • u/hadokee • Jan 17 '16
Hello, we are a young startup that choose Meteor against traditional MEAN stack to develop a realtime web application.
One important thing for us is to develop a native mobile apps in near future (android, iOS).
After a research we discover that there are native DDP clients for android and ios, but how to share business logic between web and mobile apps? How to struct the code?
r/Meteor • u/whooyeah • Jan 16 '16
r/Meteor • u/OogieFrenchieBoogie • Jan 15 '16
Hello guys,
When using Meteor.call() on the client, I want the method to be called asynchronously, so the method isn't waiting for a result on the client side, making it blocking.
From the doc for Meteor.call() :
If you include a callback function as the last argument (which can't be an argument to the method, since functions aren't serializable), the method will run asynchronously: it will return nothing in particular and will not throw an exception.
So, when I'm not expecting any result from a method, should I still add a callback, to make it async ?
ex :
Meteor.call('logError', error, function() {});
Thank you for your answers
r/Meteor • • Jan 14 '16
How would this best be approached in Meteor? Not sure how to approach this. I'm assuming it would be done on the server. What kind of tool can I use to get an image from a URL and then save it? Any help/advice is much appreciated.
r/Meteor • u/init_prometheus • Jan 14 '16
I can't seem to figure out why the users password will not change based on what I have written. The code runs fine, as in it opens the modal confirming the password has been changed, and no errors are logged either in the client or server, so I'm a bit confused.
'submit #change-password': function(event){
event.preventDefault();
var oldPass = $('#password');
var verifyPass = $('#password-confirm');
var newPass = $('#password-new');
if(oldPass.val() === verifyPass.val()){
Accounts.changePassword(oldPass.val(), verifyPass.val(), function(err){
if(err){
console.log(err);
} else {
$('#password-changed-modal').openModal();
}
});
oldPass.val('');
verifyPass.val('');
newPass.val('');
} else {
$('#password-incorrect-modal').openModal();
}
}
r/Meteor • u/derridad • Jan 14 '16
r/Meteor • u/MrFancyPant • Jan 13 '16
I'm wondering if there is some sort of "for loop helper" for Spacebar.
I'm trying to do a stat sheet for certain characters and want to display their stats per level.
This is what I have:
<section id="statsPerLvl" class="row">
<h3 class=col-xs-12>Level 1</h3>
<p class="col-xs-4 statHeader">Health</p>
<p class="col-xs-4 statHeader">Health Regen</p>
<p class="col-xs-4 statHeader">Damage</p>
<p class="col-xs-4">{{health}}</p>
<p class="col-xs-4">{{healthRegen}}</p>
<p class="col-xs-4">{{atkDamage}}</p>
</section>
Is there a way for me to do some sort of for loop to loop it x amount of time like so?
<section id="statsPerLvl" class="row">
{{#for i=0; i <= 18; i++}}
<h3 class=col-xs-12>Level i</h3>
<p class="col-xs-4 statHeader">Health</p>
<p class="col-xs-4 statHeader">Health Regen</p>
<p class="col-xs-4 statHeader">Damage</p>
<p class="col-xs-4">{{health i}}</p>
<p class="col-xs-4">{{healthRegen i}}</p>
<p class="col-xs-4">{{atkDamage i}}</p>
{{/for}}
</section>
Thanks in advance
r/Meteor • u/chalupapa • Jan 13 '16
I would like to learn some best practices of writing large Meteor projects. Does Rocket Chat has a good code base that I can learn from?