@corvid I have a function within (function($){ functon MYFUNCTION HERE })(); and my setTerval is outside this, how can I access MYFUNCTION withing setInterval ?
We have a website which is using ng-file-upload to send request to backend to upload images. It converts image into different sizes & upload to Amazon S3 server. It is working fine on web.
Our front-end & back-end contains JS Code.
From iOS App, we can upload files to AWS SDK for iOS, but it's t...
Not particularly. You can scan the ports or check for a connection, but I wasn't able to accomplish that on the fly. I could only do it when my node app restarted to see if a connection to a specific port was established
@rlemon the real problem is, I am not at the beginning of the project, it has already been using alot of function withing that anon context so I just can't export one function....it there any other way...dosen't matter if it is not the best coding practice
Here is my tag in my HTML page giving me the error:
Uncaught Error: file is encrypted or is not a database
<script>
var file = "/data/myDB.sqlite";
var db = new SQL.Database(file);
db.run("SELECT * FROM WEBUSERS", function(err, rows) {
rows.forEach(function (row) {
con...
@Cerbrus Basically, I have a component. The component renders a full screen image and a list of nodes. I want to determine if a click event targeted any specific elements within that list, without using e.stopPropagation
I have a next button and ul and some li. Intially first li will be having class active and upon clicking next button currect li active should be removed and li present next to it should be added.
when I did
$(".carousel-indicators li").hasClass('active')
it returns me true
but when I did
$(".carousel-indicators li").find('.active')
it returns me empty []
so can you tell me how to know which li has active class?
@Maurize kek Kek literally translates to lol on World of Warcraft. When someone from the Horde side types lol in /say, members of the alliance side see kek instead. Not specific to Orcs.
I've just run into a very weird problem that only shows up in Safari 10. I have playing cards, svg images, that are sometimes rotated using transform:rotate(xdeg).
The card I'm using has a red block pattern. When it's not rotated, or rotated at right angles, i.e. 90, 180, 270, then it looks norm...
@AmarA. Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I have a function built in javascript that I want executed after submit is hit. It basically changes the look of the page completely. But I need a variable from the search box to still go through to the javascript. At the moment it flashes and resets what was there because it reloads the page.
...
@Loktar in MN, they have their own warehouses and vans to deliver stuff. Big packages come UPS, but small/mail and Saturday stuff are all Amazon themselves now.
Which of the following properties seem the most natural for preventing a user from clearing an input value without replacing it with a new value: <MyInput clearable={false} optional={false} required={true} />
Is this a JavaScript thing? Still kinda confused because it's clearly a number when forcing decimal places, but instead of integer it's now a float, but it gives you the float in string form. Not following why that happens.
Guys, I have a js function that does an ajax request every 1500 ms. The php script makes a sql request and returns true | false. It works great, but only some minutes, then the only thing I get is 405 (Not Allowed). I don't know how to reproduce the error manually, even what is the reason.