HTML5: contenteditable full example

Posted April 11th, 2012 in Zanimivosti by Metod

This post was inspired by a nice article on html5doctor:

The contenteditable attribute allows us to edit content of the element on the fly. However there are a few catches in the actual implementation that are not mentioned above.

Let us just check my implementation. I’m using jQuery and jQuery UI for the javascript part and PHP for the backend.

Of course the example was simplified to not clutter it too much.

I also recommend reading the html5doctor’s excellent article on the matter.

Have fun!

Missing } in XML expression

Posted May 26th, 2011 in Razno by Metod

Today I got frustrated because when trying to parse a json string with jQuery, apparently it was causing a Missing } in XML expression error. But doing a bit more research I found the true problem. Boy was I wrong.

What was the problem?