Create Screenshot of an scrollable iframe
This tiny tutorial describes how to capture a screenshot of a scrollable iframe in most modern browsers.
This tiny tutorial describes how to capture a screenshot of a scrollable iframe in most modern browsers.
A nice little tool to format your JSON objects, if you had no suitable editor ready to hand. http://jsonformatter.curiousconcept.com/
/** * Removes leading and tailing whitespace(spaces, tabs, …) * from given string */ function trim (inputstring) { // first remove leading then tailing whitespaces // before removing the trimmed string return inputstring.replace (/^\s+/, ”).replace (/\s+$/, ”); }
To get the protocol used for the current page: var protocol = window.location.protocol
With the following function you can read out the parameters from the currently opened URL: function getUrlparam (param) { var search = window.location.search.substring(1); if(search.indexOf(‘&’) > -1) { var params = search.split(‘&’); for(var i = 0; i < params.length; i++) { var key_value = params[i].split(‘=’); if(key_value[0] == param) return key_value[1]; } } else { var params […]