Questions tagged as 'javascript'

2
answers

How to save data from a form automatically?

Hello, good evening, I need your help, I want to automatically save what is typed in a text area in my mysql database, I've heard that it has to do with Ajax, I tried with this code I have there, but is not working, data is not being saved....
asked by 18.03.2017 / 01:52
1
answer

How to put three dots in a word if the text overflows the page? [duplicate]

I'd like to know how to put three dots in the last word that exceeds the page limit. This image is like the current text. AndthisimageishowIwantittostaywiththethreepoints Hereistheentirearchiveofthesite link HTML: pastebin.com/JfaRD...
asked by 05.02.2017 / 16:06
1
answer

json array with serialize javascript not working

I have this form: <form> <select name="data"> <option>0831</option> <option selected>4731</option> <option>9831</option> </select>...
asked by 05.02.2017 / 16:39
1
answer

Join two objects in one with conditional attributes in JavaScript

I have the following dilemma, I need to mount an object to send to a API rest . But I have data that starts from a variable. I thought of several ways to do this but I do not know which one is right, or if none of them is right. if (true...
asked by 06.02.2017 / 20:45
2
answers

How to pass the contents of a .txt file to a vector in JS? [closed]

I'm having this problem, I'd like to know what you suggest me to search for to solve it. I tried to use the .split, FileReader. It can be in Js, Jquery or Ajax. Any suggestions are welcome. I researched the subject but found nothing concrete abo...
asked by 08.02.2017 / 14:03
3
answers

Javascript - Function that returns value of a CSS property

Good night (good morning or good afternoon) to everyone! I need a function that returns the value of a css property. Here is my code: CSS: .teste{ opacity: 0; display: none; } JavaScript: function funcao(){ var element...
asked by 12.01.2017 / 03:34
2
answers

Scroll Event

I'm trying to change the color of my navbar according to the page scroll, eg: It starts as transparent, but when I scroll it turns white, if I scroll up again, it becomes transparent again, but it's not rolling, it turns white when I go down,...
asked by 01.04.2017 / 18:13
1
answer

How can I remove each link that points to a video after the end of the video?

I have this div down, namely with id and having within it elements p followed a (anchor): var vid = document.getElementById('player'); var link = document.getElementById('lista').getElementsByTagName('a');...
asked by 02.04.2017 / 20:52
1
answer

Error in Reactive Native when generating Android app

I'm running the commands: react-native init AwesomeProject cd AwesomeProject react-native start And then this command: react-native run-android The error that appears: How to fix this error ??     
asked by 03.04.2017 / 21:29
1
answer

Leave a fixed option in a PivotTable - JS

I have a PivotTable, which changes according to the user's select done in HTML. However, every time the page updates the selected option it also changes. I thought of two possibilities that might work for what I want: Create a variable an...
asked by 03.04.2017 / 21:57