Table : <table id=”mytable”> {…} </table> Button : <a download=”file.xls” href=”#” class=”btn-print” data-name=”#{mytable}”> Download Excel File </a> JavaScript : <script> $(‘.btn-print’).on(‘click’, function() … More
Tag: javascript
Meteor JS : How to use aggregate function ?
To use this mongoDB functionality you need to call directly your mongoDB. So , use this to connect in the mongoDB : … More
Meteor JS : How to connect to remote/multiple databases ?
Example : var mydatabase = new MongoInternals.RemoteCollectionDriver(“”); MyCollection = new Mongo.Collection(“collection_name”, { _driver: mydatabase }); : Link for your mongo … More
Meteor Js : Calling a REST Service
In this example I will show how to call a REST service and parse this results to JSON format. Example: … More
Meteor Js : How to configure a cron call ?
Some times we need that the application can to call a function in a time interval , to do this … More
Meteor Js : How to do to send e-mail with a Mandrill account ?
First add the package : meteor add wylio:mandrill https://atmospherejs.com/wylio/mandrill When the application startup you need do this : Meteor.startup(function() { … More
Java + Javascript : How to take a user location by browser ?
In this example when the user clicks anywhere inside this form his location will be obtained by the javascript function. … More
Meteor Js : How to take the user location by browser ?
Often we need to get the user’s location through the browser. I implemented in my Meteor Js application to get … More
Primefaces : Confirmation dialog with javascript
It works in the situation that you want to ask something for user before really do it. For example, we … More
Meteor : How to use ReactiveVar ?
Some times do you wan’t change values automatically in your page. In this situations you can use “ReactiveVar”. ReactiveVar package … More