I have a json string that is a regular raw string and job a javascript object. How do i load this json into a javascript object so that I can use it normally?  var jsonStr = "{\"property1\": \"test\", \"property2\": \"something else\" }"; alert(loadedJson.property1); The example…
Calculating the length of a string is a very simple thing to do in most programming languages. It is an action that you will find yourself needing to perform very often. Be it for validation, reporting or comparisons, knowing how to find how many characters…
Every time i click a button or navigate away from a page that has tinymce running on it, i get a warning error that asks "are you sure you want to...". Nothing on the page is being saved, so there is no real point of…
I am using JsPDF and I want to add an image to a pdf document. I have followed the examples from the code and it seems fairly simple to make it work. For some reason I am getting a console error when I try to…
I am writing some custom code and I want to add a loading icon to the page so that the user can see that the code is doing something and has not frozen. Rather than generate a new one, it would be useful to just…