Questions tagged as 'javascript'

1
answer

how to bring the element number from within an append in javascript?

I have a problem that I get a string information in return from an ajax however I need to delete the specified line, but for this I need to create a counter of the append element I can not do this you could help me follow the html code: <...
asked by 23.07.2018 / 14:59
0
answers

Open window for deleting and sending data to another page with Javascript

I tried to do this as well, however, I have several records inside a repeat loop, the value of the id that I can get is last in the list. How do I get the registry value individually. function confirmacao() { var resposta = confirm("Rea...
asked by 08.06.2018 / 16:58
1
answer

Error with Sticky NavBar

I have a problem related to sticky nav, basically it works and it is beautiful, but when inserting the bootstrap it overlaps the sticky, I could only fix it by removing the bootstrap and doing everything from the site in css. But I would like to...
asked by 08.06.2018 / 21:59
0
answers

Problem with sending data via ajax and laravel

Good afternoon, I'm having trouble sending data via ajax, it returns code 200 but returns    SyntaxError: Unexpected end of JSON input But I do not think it's even in the controller <input type="button" class="btn btn-primary btn-blo...
asked by 08.06.2018 / 17:30
1
answer

Delete a specific Image from a File

I am currently working on a new project, using Codeigniter, it is my first experience and I do not find great help, I want the user to delete a photo chosen by him from his folder, The controller: ' public function delete() { delete...
asked by 08.06.2018 / 12:58
0
answers

Return Local ID with Latitude and Longitude only - Google Maps JavaScript API

Good evening, my doubt refers to the following case: I'm working with the google maps API V3, and I use services like Places, Geocoder and Matrix Distance. But I have a huge problem to return the user's current location ID (returned using the...
asked by 19.06.2018 / 01:53
1
answer

Graphics value only appears when page resolution is changed

I have 2 JavaScript charts that are receiving values through a PHP file. However these values only appear in the graphic when the resolution of the web page for some reason is changed. This is the JavaScript code I have: demo = { initD...
asked by 07.06.2018 / 16:16
0
answers

How to select a specific record from an array

Personal I have the following problem. I dynamically created an array to receive some information. selections [2]{"2","alt-2-2"} [7]{"3","alt-7-3"} [8]{"1","alt-8-1"} Well, in the key I write the id in the database of that record, t...
asked by 06.06.2018 / 13:52
1
answer

Pass parameters (including an image) to PHP with Axios using formData

I created a React component to be my custom input button: getFormData(){ var formData = new FormData(); var imagefile = document.querySelector('#btn_file_logo'); formData.append("image", imagefile.files[0]); return formData; }...
asked by 06.06.2018 / 16:01
7
answers

How does this if / else work with "?" and ":"?

I am studying JavaScript and I have doubts about the different ways of doing if / else . For example, this: foo ? foo : foo How exactly does it work?     
asked by 08.02.2014 / 18:15