Here’s my problem : I making a Web/Mobile app, using AngularJS and Cordova. For offline purpose, I use localStorage to store all the data of the app (JSON, parameters, and so on). The thing is : I need to store / cache images locally (again, offline purpose). As localStorage size limit is around 5mo, I […]
Possible Duplicate: Why exactly is eval evil? I read people claim that eval is unsafe when run on arbitrary user input code. I understand this in other languages that run on the server that access the filesystem, etc. However, why does this matter when executing code in a browser? After all, can’t you just fire […]
If I remember correctly it used to display “localhost” a few days ago. I am not sure what had changed that made server.address().address return double colons (::) instead. I read here that it returns an IPv6 address (::) if it is available but it’s disabled on my PC. https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback
How do I simulate a click on a div element? Or a mouse move? Or text input? How do I do it in a server side nodejs environment, like mocha? And how do I do it in a browser environment, with a runner like karma?
I want to build an automation testing, so I have to know the errors that appear in the console of chrome. there is an option to get the error lines that appear in the console? In order to see the console: right click somewhere in the page, click “inspect element” and then go to “console”.
The definitions from the DOM Standard seems almost exactly the same, and I don’t understand the difference. What is the difference between queryAll and querySelectorAll. The evaluation logic from DOM standard is below, but I am not smart enough to understand it. query & queryAll To match a relative selectors string relativeSelectors against a set, […]
I’ve written a bit of code in my keyboard event handler to insert a <br> in response to the press of the Enter key: event.preventDefault(); document.execCommand(‘InsertHTML’, true, ‘<br>’); This only works if the cursor is between two Letters, if its on the end i need two <br>-Elements. Can i detect if i’m on the end […]
How to check that message sent with socket.io library has been received to the client. Is there special method for it in socket.io? Thanks for your answers!