Questions tagged as 'javascript'

1
answer

field validation with javascript?

Good evening guys, I'd like to know how to do the field validations by javascript for the name, email, and phone fields. for the fields name, cpf or cnpj and phone I was able to not allow numbers for the name and letters for the phone number how...
asked by 17.10.2018 / 01:35
1
answer

Problems to insert record in webapi (c #) with javascript

Good afternoon I'm having trouble inserting log into a .Net webapi using javascript. The get method is working normally, returning the webapi information inside a table. But I'm not able to enter the information in the webapi. Checking the chrom...
asked by 15.10.2018 / 20:31
0
answers

Move Draggable right and left to resize

I have a social network with wowonder, I made a modification on the timeline page, I took the top cover image in banner format, and put it on the side, with 280x500 dimension, it happens that Draggable does not want to work correctly on this new...
asked by 16.10.2018 / 23:54
0
answers

javascript Post to ActionResult (MVC) does not pass data

I'm trying to send a complex object, via javascript function, to the ActionResult. In view: function SubmitEORequest() { var url = '/Home/ExecuteOperation'; var field = { Name: "fieldname", Value: "fieldvalue" };...
asked by 15.10.2018 / 19:16
0
answers

Check on mongodb if there was addition in the last 12 hours

First let's explain what I'm trying to do. In this system people earn between 1 and 5000 thanks coins if they order. The data is saved in MongoDB: IP, Date, Address of the Portfolio, Quantity shipped! I can not check if in the last 12 hours t...
asked by 15.10.2018 / 18:48
1
answer

How to call a javascript function that is in a separate (.js) file from cshtml?

Hello, I have a page where the data of a DropDownList is a result of selecting a DropDownList before it, I created a function with javascript and ajax to perform the filter, everything works when javascript is w...
asked by 15.10.2018 / 18:30
1
answer

Error in passing the result of a json array to the html;

I have the following situation, I have a page that gets the name of a city, between São Paulo and Osasco, both the request for the route via Ajax, and the data in json is returning from php to Js, however I have another page called cards.php tha...
asked by 15.10.2018 / 22:03
1
answer

How do I bring a select of values defined in a Controller in angular.js?

Sorry, but I'm a layman and I'm starting! In HTML, I want to display the data defined in a controller's angular class. As below: $scope.tiposCategorias = [ { id: 1, descricao:'Processados'},...
asked by 12.10.2018 / 06:48
1
answer

What is and how does the context in Javascript work?

Essential part of Javascript, every function in Javascript has context, how does it work, how does it manipulate it, and what changes in the strict mode ( 'use strict' )?     
asked by 11.03.2014 / 23:53
0
answers

Slow reading a very large string

I am losing a lot of performace when doing a decodeBase64 , when I have a very large file type 30MB, it takes a lot to read the data received from the front. Is there any way to improve the reading of this file that is in fileBase64?...
asked by 10.10.2018 / 17:41