“Die endgültige Lösung fand Ryan Dahl dann schließlich im Januar 2009 mit Java- Script. Hier wurde ihm klar, dass diese Scriptsprache sämtliche seiner Anforderungen erfüllen könnte.” 1. non-blocking i/o (ruby too slow) 2. JavaScript war bereits seit Jahren im Web […]
installation of mean.io on debian wheezy: su // root your machine apt-get install curl // install curl, say yes curl -sL https://deb.nodesource.com/setup | sudo bash – // install Node Package Manager npm install -g grunt-cli // install grunt mkdir /var/www/mean.io […]
Check out the built-in function encodeURIComponent(str) and encodeURI(str). In your case, this should work: var myOtherUrl = “http://example.com/index.html?url=” + encodeURIComponent(myUrl); You have three options: escape() will not encode: @*/+ will encode http:// to http%3A// encodeURI() will not encode: ~!@#$&*()=:/,;?+’ encodeURIComponent() will not encode: ~!*()’ sources: http://stackoverflow.com/questions/332872/how-to-encode-a-url-in-javascript
CopyProtection with javascript Protecting Your CopyRight first of all… javascript is always OpenSource… there is nothing you can do about it. So people become very creative about how to verify if a script was stolen or not. Here is one […]