Questions tagged as 'javascript'

2
answers

Load an image while running an Ajax

Good, I have a POST sending through Ajax and while I am loading the div I write a waiting phrase, however I want to upload it for an image (a gif if possible). What would be the easiest way to do it? Thanks $.ajax({ data: {lat...
asked by 24.01.2018 / 12:24
1
answer

Validate the length of an input with Javascript [closed]

How about? I would not be validating that the phone has less than 8 characters I tried to do it with onblur but it bugea when I put email I also tried with onsubmit (which would be ideal directly) but still doing nothing Any suggestions are wel...
asked by 13.01.2018 / 03:39
1
answer

Edit two fields from different tables in a query

One question, I opened some way that when I edit a specific field of a table, at the time I edit another field in another (Database = Mysql), since I have a date type field and I need that when I modify in special that field I edit another field...
asked by 24.01.2018 / 14:26
1
answer

Open a modal login form with javascript from a different html file

I am trying to do my first web application and I have a problem with a call from a menu item to the login form. What I have is the following: - An index.html file has a series of buttons and each of them executes a JS function - The JS functions...
asked by 14.01.2018 / 09:18
1
answer

calculate input value with two others, depending on the two that are filled in first one of the input is calculated?

I have three input (cost, utility, price) and I want to do the following: if you write in cost and in utility that the price is calculated, in case it is written in cost and in price that the utility is calculated. This is my javascript code:...
asked by 17.01.2018 / 21:37
0
answers

Iframe with http and parent with https, rejects the content being the same domain

I am dynamically entering an iframe on a div, and have to load an HTTP content with a local path ( link .). This is the function. function pasteIframe() { let ifrm = document.createElement('iframe'); ifrm.setAttribute('src', 'http://1...
asked by 15.01.2018 / 15:42
1
answer

Download a mongo model with NodeJS

I have a Mongo database and I would like, through an API in Node, to be able to download these records in zip, in a CSV or whatever format. Right now I have 501426 records so the find of the model gives me the following error when getting all th...
asked by 15.01.2018 / 15:40
2
answers

Is there a way to load asynchronous html content?

I'm doing a web application, in cocreto I do a 5 step wizard but too many fields, but the file has already spread a lot and it takes a long time to load, the .js are already asynchronous, but the html is making it late in loading a lot. Is there...
asked by 10.01.2018 / 00:22
0
answers

Tapermonkey update url enter several

I want to know if I can add several UPDATE URLs in Tapermonkey     
asked by 18.01.2018 / 19:34
1
answer

How can I read or download a pdf in react native?

I want to be able to visualize or otherwise download a pdf using react native . I was testing the react-native-pdf library but I get an error, I think it's because it asks me to do npm link and this command has presented problems, I'm...
asked by 09.01.2018 / 12:41