Questions tagged as 'javascript'

2
answers

include with parameter?

Does include with parameter? I have a page .php that contains the following code: <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#segunda">Segunda-Feira</a></li> <li>&l...
asked by 08.08.2017 / 00:51
2
answers

Next 0-Z Sequence Code with Javascript

I need to create a JavaScript function that gets a string of letters and numbers and it returns the next count value. The count goes from 0 to Z. Sequence example: 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - A - B - C - D Y - Z - 01 - 02 - 03 [.....
asked by 30.07.2017 / 04:53
1
answer

How to create array of objects in javascript?

I am a beginner in javascript and would like to know if it is possible to create array of objects in javascript, if so, how do I do this? I know that to create an object I need to do the following: var Ponto = function (latitude, longitude) {...
asked by 29.07.2017 / 00:07
2
answers

Limit the total of options in select - PHP

How to limit the number of options selected in a select so that the form is not sent above a maximum amount. For example, I want a maximum of 3 options to be sent on the form. Above that, I wanted to prevent the user from submitting the form....
asked by 21.09.2016 / 14:42
2
answers

Jquery - How to pass a variable to a jquery selector?

Hello, I'm new here (as well as very new in knowledge of js and jquery). I'm trying to pass the result of a variable to a jquery selector. More specifically I'm trying to pass (through the click event) the name of an id (among several existing,...
asked by 09.10.2016 / 00:26
1
answer

Can you make a type of "setInterval" in PHP?

To run a particular function in a time interval.     
asked by 08.10.2016 / 04:23
3
answers

How to use a cookie as Javascript Array?

Doubt: I would like to know a way to use Cookie , as if it were a Array . Problem: I can not figure out how to do this. Example: Suppose I have a Array called Foo which would be as follows: var Foo = ["qua...
asked by 03.02.2014 / 14:34
5
answers

Capturing dates of a text using regular expression in javascript

I have a function that returns data in JSON and places it in certain places with jQuery. One of these data is text that contains a date range (Start and End). Example of returned text: ESPÍRITO SANTO - Status: This is how much the Brazi...
asked by 11.03.2014 / 19:15
2
answers

Time difference between dates in JavaScript and MySQL

I have data_inicio and data_fim and want to know the difference of hours and minutes between them. The data_inicio will already be saved in the MySQL database as datetime , data_fim will pick the date when the u...
asked by 28.11.2016 / 14:10
2
answers

What is the difference of angle forEach and the map function of javascript

I would like to know the difference between using angular.forEach and the map function of Javascript. ex: angular.forEach(meuArray, function(itens) {...}) meuArray.map(function(itens) {...});     
asked by 02.12.2016 / 14:52