Questions tagged as 'javascript'

0
answers

Insert image in an AngularJS object [closed]

I am trying to insert an image to the attribute pendingConfirmation as you can see below and I get error of sintax $scope.colors = { status: { interested: "", pendingConfirmation: "{ background :...
asked by 02.10.2017 / 17:28
1
answer

Upload two files to PHP using an AJAX using two attach buttons

I have the following html with two buttons type file <label>Adjuntar Recibo de gas escaneado en JPG o PDF</label> <input type='file' name='archivoReciboGas' id='archivoReciboGas' /> <br>&l...
asked by 06.10.2017 / 05:11
2
answers

Problem with the observable route.queryParams

Good, what I try to do is pass 2 values within an array from one component to another, and receive them in the ngOnInit() function of the child component. The way I send them from component1 is as follows: HTML <button clas...
asked by 04.10.2017 / 18:03
2
answers

How to use "ajax" with the "scaffold" of Ruby on Rails

Hi, I'm using (REACT and Ruby on Rails) together and ajax and scaffold together to make a POST , PUT , DESTROY , GET but at the time of doing the POST simply does not do anything, this is my code:...
asked by 14.05.2017 / 22:24
2
answers

How can I compare range dates correctly php

If I have a date in the database 30-06-2017 and 25-07-2017. public static function getByBETWEEN($fecha1,$fecha2){ $sql = "select * from ".self::$tablename." where date_at > \"$fecha1\" and date_at < \"$fecha2\""; $query =...
asked by 10.06.2017 / 01:35
0
answers

How can I create a bookmark with javascript? [closed]

What I want is to show the visitor a sign, saying that if you want to add a bookmark on your homepage. Something like this: I thought that with the window.sidebar.addPanel(url,title,'') function I could achieve it but I only get...
asked by 10.06.2017 / 08:49
1
answer

404 error in node application js in heroku

I'm trying to replicate an example to receive some data in real time to emulate adding a subject, but no matter how much you upload and / or change the form, that error still exists. Error POST https://nuevohorario.herokuapp.com/enviarAsign...
asked by 11.06.2017 / 05:21
1
answer

Create post with ajax and laravel

Greetings to all, I have an inconvenience with ajax and I am quite new with js, I have a comment system in laravel, I have already managed to edit the comments through ajax but now I have a problem when creating them, this is my code. Here co...
asked by 11.06.2017 / 06:41
1
answer

save dynamic form data

Good morning, I hope you can help me resolve this question because I am new to this. I am developing a form to generate surveys dynamically, in the form you can add questions, each question can be added an indefinite number of options as shown i...
asked by 25.07.2017 / 20:57
3
answers

Know if a file has changed its content with Node.js

On my server Node.js I would need to know if the content of a file has been modified, and if it is true, read it and send it by means of socket.io . The code I have, just reads the content the first time (when the page is reloaded)....
asked by 19.07.2017 / 21:16