Questions tagged as 'javascript'

1
answer

Sign in and see if your page is online with curl

I want to log in to different pages with Curl and see if everything is OK.  Example: login successfully returns a text to the screen "login ok" if it did not work take some element of the error page and me printa in the screen under the "...
asked by 13.06.2017 / 21:08
2
answers

JavaScript buttons

I have a page with save button, but every time it is clicked the script appears that the information has been saved and exits the page. My goal is for him not to quit, but I looked at the code and I did not understand why he was leaving. Follow...
asked by 13.06.2017 / 13:52
1
answer

Pass parameters to the controller via ajax

Personally I did not handle anything in jquery / ajax and wanted to pass a parameter to the controller. I have a modal that opens only to ask if the person is aware of the cancellation where the only field that needs to pass is a hidden with...
asked by 13.06.2017 / 23:15
1
answer

how to replicate a dynamic table

How do I load exactly the same structure I create on another screen? Next, I have this registration screen where clicking on the "+" button will add text type inputs (according to the attached code) My problem is that this creation is dynamic...
asked by 12.07.2017 / 17:40
2
answers

Difficulty accessing json

I have the following json: { "destination_addresses": [ "Rua B, 1 - Coqueiro,Belém - PA, 66670-350, Belém - PA, 66670-350, Brasil" ], "origin_addresses": [ "Pref. José Walter, Fortaleza - CE, 60810-670, Brasil" ],...
asked by 14.06.2017 / 14:58
1
answer

Problem with JSON filter and Array

I'm trying to filter a JSON with category but I'm not getting it. I have 3 checkboxes and when I select them they should filter a json as selected. and when I uncheck a checkbox it should filter only those that are selected. If no checkbox is...
asked by 11.07.2017 / 20:04
1
answer

How to retrieve the result of a table in a For Loop

I have a table in javascript, it is being structured by a for loop, but I need to calculate the result of it. It follows the code .. for(i = 1; i<=30; i++) { var maximo = 5; var a = parseInt(Math.random()*maximo+1); var b = parseInt(Math.ra...
asked by 11.07.2017 / 20:02
1
answer

store values and display them in another field

People have developed this site and in the indemnity part has a fade.js where when the user clicks on one of the buttons leads it to next step Whendoingthiswillappearasmallformthathewillhavetoenterthisinformationandwhenclickingnexthewillgett...
asked by 11.07.2017 / 20:05
1
answer

Api receiving date with month and day changed

I have a class: public class Filtros{ public DateTime DataInicial { get; set; } public DateTime DataFinal { get; set; } //outros campos... } I have a C # API that receives the class: [HttpPost("ObterProvisoes")] public JsonRes...
asked by 12.07.2017 / 14:52
1
answer

Using active menu as input "radio"

I'm using a horizontal boostrap menu, its structure is basically like this: <ul class="nav nav-pills"> ... <li data-type="news" id="5" role="presentation"><a href="#">Link</a></li> <li data-type"sports" i...
asked by 12.07.2017 / 19:36