Questions tagged as 'javascript'

1
answer

How to serialize a dateTime displaying in dd-MM-yyyy format hh: mm: ss

How do I send to View() of my Controller in Json format, the date formatted in the dd-MM-yyyy hh:mm:ss pattern? In the data transport between View and Controller I'm using AJAX. public ActionResult GetList(Object abc) { ......
asked by 06.01.2017 / 20:23
1
answer

Calculate in javascript without refreshing the page

I'm trying to create a script in javascript to get a value entered by the user, and multiply by the specified value, but every time I click the button, it does the calculations, but it refreshes the page then zeroes. Here is the code I...
asked by 10.01.2017 / 17:35
1
answer

Layout images in carousel bootstrap

I have the following code snippet: var images = []; for (var i = 0; i < actions.length; i++) { for (var j = 0; j < actions[i].Images.length; j++) { var imagem = new Image(); imagem.Description = actions[i].Images[j]...
asked by 04.01.2017 / 19:33
1
answer

How to interact with HTML created with javascript?

I'm creating a posts system that will be updated by ajax, however when I add another post the side menu does not work. How to update without making the menu stop? This is the code I'm using, put a button next to it to simulate ajax updating p...
asked by 10.01.2017 / 20:10
1
answer

Memory Consumption (HTML Element x jQuery Objects)

I'm creating a system where I need to write many DOM elements into variables. Is there any difference in memory consumption in writing HTML elements vs. jQuery objects? HTML elements: var elemento = jQuery('#elemento')[0]; //mesmo qu...
asked by 05.11.2015 / 13:36
1
answer

How do I get the apk of my IONIC application

Following the documentation , there should be two simple commands: To include the platform: ionic platform ios android To compile: ionic build android However, I'm getting a lot of red error in the terminal, as shown bel...
asked by 05.11.2015 / 13:22
1
answer

Post with form + string

I have the following function: var form = $("#formEditarCompra"); var meioPublicacao = $("#MeioPublicacao").val(); if (form.valid() && setarFocoErro()) { mostrarAguarde(); $.post(form.attr("action"), { compra: form...
asked by 03.11.2015 / 15:16
1
answer

Searching and changing the value of checkboxes with javascript

I'm trying to fetch and change the values of a checkbox using Javascript. The intention is, when the JS function is called, check that the checkbox is set. If not, seven-a as checked, and vice versa. But when trying to read the state of the chec...
asked by 26.11.2015 / 11:56
1
answer

Javascript function does not execute PageMethod

I'm calling a PageMethod in a Javascript function, however it goes straight to the end by not getting into my C # function. Here is the code below: <script type="text/javascript"> function enviar() { if (document.getElementBy...
asked by 13.11.2015 / 00:29
1
answer

How to calculate NPV (NPV) and IRR using Javascript?

I'm having an economically viable CBT project using PHP + Javascript, well, I can calculate all the indicators I need, minus NPV (NPV) and IRR, I saw a library called finance.js but I could not integrate it into my script can anyone help...
asked by 07.11.2015 / 02:36