Questions tagged as 'javascript'

2
answers

Angular 2: Array declared with const is modified

I have the following problem, I have been trying to find the answer for a few hours, I put it in context. I have this code. in a theme.model.ts interface spectrum{ shade: string; hex: string; contrast: string; }; interface pal...
asked by 20.01.2018 / 02:01
4
answers

I can not get Json on Ionic

I'm having trouble getting the data of my own api and reading them in the ionic app, basically I do not get an error, the get occurs on the server with code 200, but in the app I do not receive anything, thanks for the help JSON response [...
asked by 17.01.2018 / 20:18
2
answers

Vertical scroll by clicking on the background

Is there any way by means of jQuery or CSS to perform the vertical scroll by clicking on the body of the page? I have made and modified the scroll of the project but I have no idea how to capture the event of clicking on the body and move the...
asked by 08.02.2018 / 17:49
2
answers

How can I see the results in pesos ($ 0.00)?

When moving the Slider some results are shown, it is assumed that these results are prices, the idea is to show those numbers in pesos format, that is if the value is 240000, it should be seen: $ 240,000 and if the value is 1250000, You should s...
asked by 08.02.2018 / 17:46
1
answer

Problem when playing sound in an img

Greetings, I want to change the src of a label to be able to reproduce a sound depending on the image pressed. The original code is: <head> <script> function EvalSound(soundobj) { var thissound= eval("doc...
asked by 19.01.2018 / 10:54
1
answer

clean a select in jquery

When making a query through ajax, the parameters that I am sending are sent by selects but the problem is that once the query is done the values remain there and they do not want to erase me, I used the option empty() but when I do, the o...
asked by 09.03.2018 / 18:56
1
answer

Send PhoneGap data to Web Service

I'm creating an app with Phonegap and I do not know how to send a string from my .js to a web service that I have created with Java, some suggestions I'm new to this and I do not find anything clear, thanks. My JSON function is as follows myfu...
asked by 10.03.2018 / 13:55
2
answers

Problem calling javascript function does not return result generated by ajax

I have a problem that I can not solve, it turns out that I want to call a function which after doing an insert in mysql returns the id, that makes it perfect, but my function never manages to receive the result despite the id by console It comes...
asked by 07.01.2018 / 18:12
2
answers

Display a user's name in their profile. PHP

Good morning, have all of you! I'm making a user platform and I'm in the profile phase, I've already logged in (which, you enter by registered mail), registration, use of cookies, password forgotten, etc ... Now, my PHP code for the profil...
asked by 02.02.2018 / 14:38
1
answer

Work with JSON data in PHP

I have a variable JavaScript in the following way: var datos ={Tabla: 'Principal' , CampoConsulta:['Nombre','Apellido_Pa','Apellido_Ma'], DatosConsulta:['Juan Luis','Perez','Martinez'], TipoDato:['s','s','s'], Val:[1,2,3] }; This dat...
asked by 04.02.2018 / 02:44