Questions tagged as 'javascript'

3
answers

Ajax upload does not send image or parameter

I'm trying to upload without From, for image upload, but I can not. html <input id="avatar" type="file" name="avatar" /> <button id="btnOcorrenciaSalvar">Salvar</button> Javascript code: $("#btnOcorrenciaSalvar")....
asked by 20.12.2015 / 02:02
1
answer

Tutorial data binding as AngularJS

Good evening, I wanted to deepen my knowledge of javascript by understanding the inner workings of some frameworks. There is something I can not find, how does AngularJS and VueJS do the Data Binding in the view. Example: <body>...
asked by 19.12.2015 / 22:08
0
answers

AJAX request on the server

AJAX request does not work when on server ... locally runs normal ... Anyone have any idea what it can be? function SalvarPedido() { //Data var data = $("#Data").val(); //Cliente var cliente = $("#Cliente").val(); //Valo...
asked by 17.12.2015 / 21:31
2
answers

@ Html.DropDownListFor Default item in the first list values

Good afternoon, gentlemen. I use DropDownListFor to load lists, example load all my clients to be selected. However, I need that if a record does not appear in the listing have the option to add a new item. I can write the code, how...
asked by 17.12.2015 / 21:30
2
answers

Validate Field with javaScript

I need to validate some field, forcing the user to provide the data before saving to a bank, if it does not provide the data, the border of the control goes red stating that there is something wrong with the field. I've already been able to va...
asked by 18.12.2015 / 19:49
1
answer

How to check a login form without refresh? [closed]

I want something that when clicked on the Entrar button it sees if this is all ok password and correct email. How to do it in JavaScript (preference) or in AJAX?     
asked by 29.12.2015 / 12:01
0
answers

Animations and effects of Javascript scrolling

In recent times it has been common to find animated sites based on page scrolling. But, unlike the result of a WOW.js of life for example, if you scroll, let the effect run, scroll to another section of the page and return to the previous place,...
asked by 06.12.2015 / 15:50
1
answer

Execute command only after the for - Javascript ends

I need to get the distance traveled by a vehicle in the last 3 days and display it on the chart. For this, I make a for and I'm calculating the distance covered and saving in an array (arrayKmDayData) : arrayKmDayData.push(Math...
asked by 06.12.2015 / 19:17
0
answers

"Rain of images" effect in CSS3, JQuery or JavaScript. How to make?

What I have: -A div with background-bg class, whose image fills the entire screen. <div class"background-bg"></div> What I want to do: - Create a "rain / snow" effect (falling type) using 20 other small images (12...
asked by 05.12.2015 / 20:40
1
answer

Mask and Field Validation for Mobile

Could you help me with this validation? The field "txtTelCel" should have the format #### - ####, where # is a numeric digit and if it is not in that format, a warning should appear informing the user. Note: without using jQuery. <label...
asked by 13.02.2016 / 22:31