Questions tagged as 'javascript'

1
answer

Problem in api call in React JS

I created a webapi in ASP.NET Core, and I need to consume it using React, the web api works normally, if I use curl or Postman among others, it works normally. The problem starts when I'm going to use React, when I try to make any requests for m...
asked by 04.10.2018 / 14:46
1
answer

I wanted to put an alert on my login screen

I wanted it when I hit the login and my password or registration, did not match what is not on the bank of some alert. here is the modelUser <?php include 'usuarios/usuario.php'; class ModelUsuario{ public function adicionar(){...
asked by 04.10.2018 / 23:09
2
answers

Access-Control-Allow-Origin jQuery Ajax

I'm trying to access the post office to calculate freight and I get the following msg: Failed to load http://ws.correios.com.br/calculador/CalcPrecoPrazo.asmx/CalcPrecoPrazo: No 'Access-Control-Allow-Origin' header is present on the requeste...
asked by 11.05.2018 / 00:58
1
answer

How to get a div from another html page with pure js?

I want to load a list from a div , from one page to another (both on my server). I know that there is a jquery $('#content').load('paginaexemplo.htm' '#lista') , but I'd like to know how I do this with
asked by 30.05.2018 / 05:07
2
answers

How to fill a Select dropdown based on the value of another select, the data comes from the same table in db

I have a database where information is stored from the year. In the site I have 2 Selects, one for year and one for the files of that year, I currently do this with JS but I wanted to move to mysql, hence I wanted to know how to do for example i...
asked by 15.06.2018 / 15:00
2
answers

Modify an HTML element or a native browser function

Next, google chrome supports <dialog> and its showModal() and close() functions. However, some browsers do not support it. I made a simple script, which checks if the browser is different from google chrome, and if so,...
asked by 19.06.2018 / 03:30
0
answers

Timer function does not work

I'm using the Sweet Alert library and when I show a message I want it to remain on the screen for only a certain time and then it obviously disappears, according to the documentation I can use a function from the library itself, in case it would...
asked by 28.11.2014 / 04:43
0
answers

DIV update after file upload

I'm developing an upload system with jQuery Form, it worked perfectly uploading with the insertion of the data in mysql via PHP, however I tried to update a div with the contents of the files dynamically after uploading. I do this with jQuery $...
asked by 08.02.2015 / 02:35
0
answers

Calling a javascript function to execute a logic with data I extracted from html

I'm getting some data from an html and I need to call a Javascript to generate a parameter with the data I got in html. How do I call Javascript to execute its logic with extracted data within a class? Javascript is below. Note that the progr...
asked by 05.02.2015 / 19:32
3
answers

How to Change the Google Maps API V3 Bookmark Icon

<script type = "text/javascript" > var map; var infowindow = new google.maps.InfoWindow(); function initMap() { var directionsService = new google.maps.DirectionsService; var directionsDisplay = new google.maps.DirectionsRenderer({...
asked by 01.02.2018 / 20:26