Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Hello i would like to check if ALL features of HTML5, CSS3 and Javascript are supported in my browser before redirecting the user to the application itself, i have seen some references to Modernizr but even after reading their documentation i can't make heads or tails of how to use it.
I just want a simple function that returns a boolean after the check has been made. Is there any sort of function like that out there somewhere?
Life (and browser compatibility) is more complicated than a single boolean.
Use Modernizr, then make sure all the specific features you actually need are supported and do your redirect, for example:
if(Modernizr.geolocation && Modernizr.boxshadow/* whatever else ...*/) {...}
You tagged your question as 'php' - but reliable feature detection can only run on the client side. If you want this info on the server you can run the tests client side and then pass the interesting results in a cookie or something similar.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I would like to know, how can I write something(small) like node in native lanuage(c,cpp). I read that c,c++ experts developed node.js and made it available with javascript interface. This interface is much much simpler to start with node.js applications.
This is not about re-inventing the wheel,(only learning) but I want to learn/understand the way where to start if I want to create a server that work like node, it is not performance or scalability or simplicity oriented. nothing like that.
Any book or any c,cpp topic that will help me to start with websockets, broadcasting data and such important features of node. I am new to c,cpp also but need to understand what is making node such a strong technology.
Any other solutions than taking source code of node.js ?
Node.js is powered by libuv - it's an asynchronous crossplatform io library, written in C. Basically, it does everything node does, but exposes only C interfaces.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Iam now making a program where user enters login, pasw and then program sends it to website with post method or somethink like that, and then retrvieves html source and puts it in string.
I cant find a best option to do this. Currently my program's ui is in Qt QML and main is in c++.
I have done this before with libcurl but I dont like, so maybe there is another option.
And another problem is that iam beginner and I know just C++ and Qml. I tried javascript but i cant get it to work.
You have two options. You can either write C++ code to make the call(which will require some sort of library to help you make the call) or you can make the call in JavaScript using an XMLHttpRequest(Which is provided natively by QML).
XMLHttpRequest example:
http://qt-project.org/doc/qt-4.8/declarative-xml-xmlhttprequest-xmlhttprequest-example-qml.html
For C++ I would refer you to How do you make a HTTP request with C++? which discusses libraries that allow you to easily make the http calls in C++.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there a library which makes all browser's JS interfaces comply to W3C standards?
For example, one that will add addEventListener to IE8, based on attachEvent.
EDIT 2022. core-js was created a year after this question. I guess it wasn't that much off-topic, huh?
Every modern javascript framework offers you methods to even out these inconsistencies in the browsers js implementation (like jQuery's on handles addEventListener/attachEvent). Most of these frameworks however don't use the approach to alter the host objects (which is considered problematic) but their methods internally map to the according functions available in the specific browser.
I suggest you try one of those many popular frameworks (like e.g. jQuery, MooTools or Dojo to name only a few of the more popular ones).
I suggest to NOT use a framework which alters the host objects directly (as some of them tried in the earlier days and later discovered that this causes many problems).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
iam looking for some tools or ways to detect memory leaks, slow methods in my javascript app.
You need to use the profiler; I recommend Chrome's. In the profiler the steps are
Go to the profile part of the developer tools
Get to the part where the slow js is
Start recording
Start the suspect code
Stop recording
After that, the profiler will tell you everything you want to know about how many objects there are, how much time is spent in each method, etc...
The procedure should be similar with Firebug on Firefox.
Good question. Profilers/browser plugins are handy, but very well may yield results unique to the browser being tested on. There are a number of techniques available from testing via multiple browser's plugins/profilers to inline debugging performance statements.
Two good articles with, robust examples and recommendations:
How do you performance test JavaScript code?
Memory leak patterns in JavaScript
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I wonder if there is a Node.js application that starts a server on the current folder to let me edit files through the web browser?
Kinda like http://www.cloud9ide.com, but for general editing (scripts, text etc).
You might want to look at Mozilla Skywriter - they are in the process of converting their server code to node.js.
You can now try making your little node.js app online with http://jsapp.us/.
It's a sandbox with Bespin/Skywriter editor and the commands to save and deploy a node.js application.
Its outside the scope of your question but if you have php access you could use http://tinymce.moxiecode.com/ and just set the value of the input field to the file you want to edit.
Then when you submit just have it overwrite the file you opened. I know its not using javascript like you asked but I though I would offer the suggestion its how I do what you where looking for.