Questions tagged as 'javascript'

2
answers

How to access javascript object

Hello, I have this javascript code: require("TimeSlice").guard(function() { (require("ServerJSDefine")).handleDefines([["cr:692209", ["cancelIdleCallbackBlue"], { "__rc": ["cancelIdleCallbackBlue", null] } , 3419]...
asked by 03.01.2019 / 20:56
3
answers

count Saturday and Sunday in a range of dates with datapicker

How can I know when Saturdays and Sundays are in a range of dates? 01-01-2017 & 01-20-2017 (for example), knowing that datapicker (bootstrap) has a taking arrangement = > Sunday [0] [Monday [1] Tuesday [2] Wednesday [3] Thursday [4]...
asked by 24.02.2017 / 16:58
3
answers

pass variables from php to javascript

Hi, I would like some help with this question. I have this php code but I would like to pass it to javascript only possible $referr = $_SERVER['HTTP_REFERER']; $keyface = 'facebook'; $desdefacebook = strpos($referr, $keyface); if ($d...
asked by 02.03.2017 / 21:40
2
answers

React Native: Unable to download JS bundle

I created the sample application in React Native, following the initial tutorial that the official site has: React Native Android But, when I execute    react-native run-android I find the following error: Anyone who know...
asked by 20.12.2015 / 01:35
1
answer

Check / uncheck all checkedboxes in a table

I have seen a similar post where you have a code that selects all the checkboxes in a table, but in my table if I have a checkbox with the attribute disabled this equals me. function toggle(source) { checkboxes = document.getEl...
asked by 04.01.2019 / 16:01
1
answer

Error counting the same day

I have a system that calculates the number of days but the problem is that the client wants that the current day I also add them. Example: if I choose today 12-13-2018 at 12-15-2018, it results in 2 days and I have to count 3 days. script.js...
asked by 13.12.2018 / 20:55
2
answers

Problems with dynamic select - dependent ajax, mysql and php

I try to create a dynamic / dependent select with ajaxx and this even though it generates return results, I can not give value to the html element. Here the code: <script> // Agarra el ajaxx de país. $(document).ready(function...
asked by 15.12.2018 / 03:33
1
answer

Create custom .ON events in jQuery

I hope you can help me, because I want to know this and I have not found anything useful in the searches. Basically what I want is to do as a listener if that is how it is said, waiting for another function to react (or make a callback, I think)...
asked by 14.12.2018 / 18:17
1
answer

How can I open an image from my computer and move it inside my canvas on a web page?

I am trying to open an image from my pc to show it on my canvas that I create on my website, but I can not find an example that can guide me to do this, I really do not know if I can if someone can help me please. Here I leave part of the code t...
asked by 23.11.2018 / 05:54
1
answer

Persist a variable

I have a code in JS that has a varible with the idea of keeping a value in a constant way. The problem is that when calling that file again the variable is reset to undefined. const rpcURL = "http://localhost:7545"; var address, key; function...
asked by 17.12.2018 / 11:43