Questions tagged as 'javascript'

1
answer

How to instantiate an object to create a document in mongodb

Hi, I'm new to this, I understand that to create the model of a scheme, it's like that = > var Movie = mongoose.model('Movie', movieSchema); var movie = new Movie(); //instanciamos mi objeto user(Documents are instances of our model...
asked by 10.04.2018 / 11:29
1
answer

Put percentages in two ion range sliders

I am using this library: Ion Range Slider I'm trying to bin two sliders, and they move to a certain percentage when one of them is manipulated. I give an example $(function(){ $("#foo").ionRangeSlider({ type: "single",...
asked by 10.04.2018 / 19:07
1
answer

Show and Hide in js [closed]

Hello, they are asking me for something I have this code: $("#divNeeds").hide(2000); $("#divNeeds").hide("slow"); $("#divHome").show(); But this appears from the bottom up, but they are asking me to appear from right to left and I can no...
asked by 10.04.2018 / 23:03
1
answer

Does anyone know how to activate shield in AdonisJS? Can not call function csrfField from

I have a problem with AdonisJS I am trying to create a form to send data by POST, but at the time of placing the token I get the following error "Can not call function csrfField from", now if I deactivate the shield and remove the function {{ cs...
asked by 13.04.2018 / 16:50
1
answer

Show and hide divs

I have the following problem, I already managed to hide a div from right to left, but what happens is that the second div (the one that is going to be shown) does not appear until the first div is completely gone. But I need that as the first...
asked by 11.04.2018 / 22:48
1
answer

@ Url.Action does not work in javascript file [closed]

From a view razor I can call links with this window.location = '@Url.Action("ReporteDictaminaciones", "Auditoria")' + '?Auditor=' + auditor Passing it to a JavaScript file stops working. Any Solution?     
asked by 13.04.2018 / 17:04
1
answer

Failed to search view in the views directory for a nodejs app

I try to create my first Node JS project but I can not show the .ejs page that I created in my views directory. In effect I get: mike@mike-thinks:~/Desktop/Exercises$ node app.js ********************************************************...
asked by 13.04.2018 / 14:17
1
answer

Error handling in Angular with inject

I recently asked how to get errors js in Angular 1.6 but now I'm having a problem trying to inject $http to factory . I get the following error: Circular dependency found: $rootScope <- $http <- $exceptionHandler <- $...
asked by 13.04.2018 / 15:27
1
answer

Extract external domain xml data with jquery

I happen to have an error in the browser when extracting the xml data from an external domain through jquery ajax. I try to do it this way: $.ajax({ type: "GET" , url: "http://api.radionomy.com/currentsong.cfm?radiouid=E8FBFBE1-E50...
asked by 15.04.2018 / 14:27
1
answer

How to configure Data table Jquery?

Good to know if you can configure Data Table and how to implement it but I wanted to know if you can choose what things to use if I only want the page because I only leave the page if I only want the search engine that only the search engine tri...
asked by 15.04.2018 / 15:17