Questions tagged as 'javascript'

3
answers

How to know the names of array positions in php?

I submit the javascript 2 arrays with the following data: values = {'tipoLicenciamento':tipoLicenciamento,'modulo':modulo} ; values = {"modulo":modulo,"categoria":6}; In my php I get something like this when I give printr() Array (...
asked by 18.09.2017 / 20:04
3
answers

How to write a Regular Expression to find a paragraph?

What is the correct way to write a Regular Expression to find a paragraph? // Expressão Regular var minhaExpressao = /<p>.*</p>/; How can I fix this variable?     
asked by 18.06.2018 / 19:39
4
answers

How do I delete only 1 form field?

I have a company invoice bar code entry form, which has fields such as driver, used car on delivery, and so on. So that at the time of entry, the user does not have to fill in the information for each note, I use: body onload='window.history.b...
asked by 17.01.2018 / 12:54
2
answers

What's the difference between these uses of the setTimeout () function?

What's the difference between using setTimeout() so setTimeout(()=>this.logicaRotacao(), 3000) And so? setTimeout(this.logicaRotacao(), 3000)     
asked by 15.11.2018 / 18:36
5
answers

How do I get the index of a javascript object by looking for the value?

I have a JS object like this (dummy values): { aifuw : 7, hsjwo : 5, hsgqk : 137, jskwe : 9483, NNNNN... : N... } I need to get the index where the value is 137 . The forms I tried did not work.     
asked by 31.05.2014 / 01:56
3
answers

WebService in javascript

How to consume a Web Service by javascript using Visual Studio? I've searched and found a way to do it with Jquery but I've never used it before. I need to consume this Web Service to search for information such as Addresses etc. I already...
asked by 12.02.2014 / 13:41
2
answers

Retrieve cookie expiration time in javascript or jquery

Is there any way to retrieve the time remaining for a cookie to expire in javascript or jquery?     
asked by 28.07.2014 / 23:37
5
answers

Call function js in another file - Dependency between Javascript scripts

I'm in doubt on js to call a function in another js. Example: if (nome == ""){ exibirModal(); } Since the function " exibirModal() " is in another js, it is giving error as if the function had not been declared. In my html I...
asked by 23.07.2014 / 21:37
3
answers

This Javascript loop is dropping my browser. Any idea why?

I'm solving the following coderbyte.com challenge:    Using the JavaScript language, have the function RunLength (str) take   the str parameter being passed and return to the compressed version of the   string using the Run-length encoding al...
asked by 22.06.2015 / 20:36
3
answers

Problems with PHP encoding in UTF-8 [duplicate]

None of the solutions suggested in various forums, websites and the like worked. I ran several tests and none of them worked and so I came here. The website where the error occurs is this: link It was not developed by me, a client of m...
asked by 29.10.2015 / 17:37