Tag: js

15.01.2015

“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 […]

17.11.2014

[cc lang=”html” escaped=”true” width=”500″] Bootstrap 101 Template Hello, world! ADD DEL [/cc] Bootstrap 101 Template Hello, world! ADD DEL

13.02.2014

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