Questions tagged as 'javascript'

2
answers

Limit users in a PHP application

Hello, Developed a system in php controlled by Sessions .. I checked that you can limit the maximum number of online users on the system via apache (httpd.conf). Is there any function (ajax, javascript, php) that I can limit to 05 concu...
asked by 09.12.2017 / 13:49
1
answer

Disable property using Draggable jquery UI and javascript

The idea of this code is that after the items are dragged and dropped in the field, they change the disable = true property to disable = false. Does anyone know how to do this? <style type="text/css"> *{ margin: 0px; b...
asked by 04.11.2017 / 19:02
1
answer

using the hook of the plugin jquery.cloneya

I'm using the plugin from jquery.cloneya which is a plugin to clone forms that were already included in an template of an admin panel I am using. I did not quite understand how to use the hook of this plugin to increment the...
asked by 02.04.2014 / 22:17
1
answer

Automatically select a select and press the button

I have a field of type <select> / <option> that when the user selects a value I call a function to populate another <select> , type the state and city combos, this is working, and hence the user click on a b...
asked by 26.03.2014 / 20:52
1
answer

How to send messages to the open tabs of an app in chrome

I'm fixing the sync part between the open tabs of my app and I remembered that Google Chrome has an API that if I'm not mistaken does exactly what I need, send messages internally in an application. I took a look at Google and Chrome Develope...
asked by 08.04.2014 / 04:04
0
answers

Fill val of a class that is created dynamically

I am making a request, which with this return, I create a class with the return name with the date attribute to be the value I want to perform the calculation. It looks like this I do not go for the whole request that is huge and is not th...
asked by 19.10.2017 / 15:32
1
answer

How to distribute points evenly inside a polygon?

Using the Google Maps API , I'm creating some random (custom markers) points within a polygon. I created, at first, a function in which I run a loop of 100 positions and randomly distribute the points inside the polygon. If the generated coordi...
asked by 23.10.2017 / 05:27
1
answer

Protect memory address

I'm developing a simple game. I want to protect the memory address where the player's score is located so that only a specific process can access it, thus preventing the user from changing or accessing this memory address with a cheat tool. Is t...
asked by 06.11.2017 / 01:56
1
answer

Inserting Vue Component in the DOM via jQuery

I'm using Vue in an application where I have a list of items and a button to add more items. When you click add I load an external html with a component: <div class="gutters-8 col-lg-6"> <div class="form-group combined-inputs...
asked by 10.11.2017 / 18:49
0
answers

Testing a promise on Angularjs

I'm trying to apply unit testing on the following function: function do_query(method, url, data, callback){ var defer = $q.defer(); var header_request = StorageService[storage].get('header_request'); var settings = {...
asked by 08.11.2017 / 19:41