Questions tagged as 'javascript'

1
answer

datapicker - range

I have a problem with a Date Picker Range Bootstrap, since it is shown in the back of my modal, try a z-indez:-1 , but I do not see favorable changes. This is my code: $(function() { var start = moment().subtract(29,...
asked by 30.01.2018 / 18:18
1
answer

How to incorporate values from the database into a js?

Good morning, it's my first time working with ajax and I would like to know how I can make a variable in JS take values from the database This is my code in PHP to make the call of the data of the database <?php $host = "localh...
asked by 30.01.2018 / 15:22
1
answer

Replace one template with another in nodejs

I have a doubt .. Attach a button to close session. You already create the event and everything is fine. But how can I tell the server to send me the welcome page? Use nodejs server. And in the front javascript ... The welcome page is a...
asked by 27.01.2018 / 23:25
2
answers

Button value within table

I have a dynamically generated table, inside it I have a button to which I want to obtain its value The button performs an action different to what is assigned its value, so I have assigned it a value there to use it in another action I am...
asked by 26.01.2018 / 18:05
0
answers

How to show a pug plate

Using ajax request the template to the nodejs server. And show it with the head and the body. To replace the previous ones The ajax request is already made. just do not replace the head of a web page already rendered.     
asked by 25.01.2018 / 16:11
1
answer

How to get a variable sent from the server

My code starts like this res.render ("index", {message: "Hello"}); The question is how to get that variable message in javascript code. Use nodejs as a server. To serve the template use pug. successor of jade.     
asked by 25.01.2018 / 17:44
1
answer

Add Spinner to my button

I'm working with a spinner on a button. I can not add my spinner correctly, this is an image .gif that when loading the page the spinner appears in the whole window and should appear at the moment of clicking on the onclick...
asked by 26.01.2018 / 17:48
1
answer

Problem with Vegas js and database

I have a problem with the plugin Vegas.js , when calling my images from the database, I can not see them, they do not appear in the plugin, but I do a console.log and I copy the text in the plugin if appear, this is my code: $.get...
asked by 25.01.2018 / 16:47
0
answers

call parent object from iframe in php

I want to make a call to an object and redirect it that is in the parent of an iframe from php. I would swear it was simple, I think I have done something like this for a long time. The fact is that this is the piece of code I have: if($_PO...
asked by 25.01.2018 / 18:11
2
answers

Disable a select with jquery when an input is not empty

Good morning. I have tried it with a function but the detail is that the input is readonly , that is, the user can not write, the input is text type that feeds from a search engine, a code is brought and places it in that field,...
asked by 25.01.2018 / 17:48