Questions tagged as 'javascript'

1
answer

Fullcalendar Javascript Events with PHP

How do I save the drags between days or drag hours? How can I do that when I click on a day it opens a registration page with the day I clicked selected so that I can enter a description and the start and end time? My events are all in a...
asked by 18.05.2015 / 19:30
2
answers

How to capture certain part of the content of a div?

Hello, I have a div that has a certain height and content <div class='mydiv'> <p> blabalbalala </p> <p> blabalbalala </p> <p> blabalbalala </p> <p> blabalbalala </p> </div>...
asked by 19.05.2015 / 22:21
4
answers

Javascript - Validating numeric field (popup)

I have a screen that has 4 inputs. The value of these inputs is being saved in my database. But do I need to find out how I can validate these fields as just numeric fields? I tried a code found on the web, but it did not work. function che...
asked by 13.06.2017 / 18:50
2
answers

How to get varying macros in a string

How can I get the macros of a string, so that they are only what you have between [...] . I tried this way, but it can be broken, have some way to do it using regular expressions? var texto = "HIGHLANDER esse aqui [TESTE] muito ma...
asked by 11.04.2017 / 14:32
1
answer

How to load information from a DB into the form?

Hello, everyone and good afternoon! I am going to explain my problem to you and stress that I would like you to solve only with PHP, but almost sure you need another language. I would like in a form, in a tag to have options with names of com...
asked by 06.04.2017 / 23:34
1
answer

How does the Object Linked to Other Objects pattern work?

What is the OLOO pattern? How does it work? What's your difference to Prototype Pattern? What is the advantage of using each one?     
asked by 30.03.2017 / 15:43
1
answer

Datatables processes only one request

So, I'm making a custom selects system with the datatable, but the request only processes once. Example of my php, js and html <div class="input-group has-feedback" id="divCidade"> <div class="input-group-addon"> <...
asked by 31.03.2017 / 20:26
1
answer

Sending new value to all users via signIR

I need to make all users receive the updated values on their screens as soon as the AutonavHub.client.printPackageInfoFloat(objeto) function is called within $scope.adicionar = function (objeto) {...} . Below is my ChatHub.cs u...
asked by 23.05.2017 / 22:39
1
answer

Manipulation MomentJS

I'm using moment.js to validate some dates and I've used the moment().weeksInYear() function to check which week of the year we're in. I need to make a date forecast, after the user tells me a date, I can calculate how many weeks will...
asked by 01.06.2017 / 14:32
2
answers

Function add class in pure JavaScript [can not be es2015 / 2016]

Good morning, everyone. I've done an effect in which you click on a div and swap the image with css animation effect. In the case, I used the jquery addClass / toggleClass (I used the 2). But I wanted to do a script using pure JavaScript...
asked by 26.05.2017 / 16:01