background preloader

JQuery

Facebook Twitter

Understanding JSON: the 3 minute lesson. 'Simon' on Sun, 23 Jul 2006 18:22:02 GMT, sez: Brilliant. I had (sub-consiously) followed steps 1 to 4 exactly as you describe, except the alarm bells were 3 days ago. Thankyou for saving me the agro of looking it up for myself. 'John' on Sun, 23 Jul 2006 19:35:19 GMT, sez: INI files Rule!

I still think they are great for a lot of things. Anyway, nice post on LEON er, JSON. 'Rumen Stankov' on Mon, 24 Jul 2006 06:29:04 GMT, sez: Ah! 'Wesley Shephard' on Mon, 24 Jul 2006 22:20:38 GMT, sez: Interesting. SQL injection, take two? 'lb' on Tue, 25 Jul 2006 00:04:01 GMT, sez: yeh it looks very 'injectable' -- maybe more prone to XSS (cross site scripting) than sql injection... i guess the main trick is html encoding all user input, so it can't be interpreted as html (or javascript). 'Dustin Diaz' on Tue, 25 Jul 2006 13:49:44 GMT, sez: JSON in and of itself is not what's OO. 'Aaron Bassett' on Tue, 25 Jul 2006 14:30:35 GMT, sez: Grammis: Grammatisches Informationssystem.

Javascript As a Foreign Language. So you know 37 different programming languages, you've programmed moon landers, missiles and toasters, and how could Javascript be any problem? Then you start trying to code up some Javascript and find that it just does not feel right, nothing seems to flow naturally or easily. Your instincts do not seem to guide you. You are not alone, here is your cheatsheet... Welcome to the Database Programmer blog.

If you are trying to write database applications in 2008 then you most likely bump into Javascript. To see the other essays in this series, consult our Complete Table of Contents. Contents Today's essay is rather long. Start Off: Firefox and Firebug In case you have been living under a rock for the past few years, let me tell you to do your development in a real web browser, that is, Firefox, and to immediately download the Firebug extension. In particular, firebug has a "console" object that you can send messages to, such as this: console.log("this is so much better than alert()! ") Execution. Datatypes and More in RELAX NG. Datatypes and More in RELAX NG(Page 1 of 4 ) Datatypes in RELAX NG In the last two articles, if an element did not contain child elements, then it was either empty or it contained plain text.

This works fine for some situations. For example, there's no other practical way to represent cities and states. However, in other situations, the text pattern just doesn't work. For example, the date attribute accepts any sort of text. However, there's nothing to stop a person from putting the date in the form MM-DD-YYYY: Nor is there anything to stop a user from doing something like this: The document will still validate. These two datatypes will only get you so far, though, and we still can't represent our date properly.

The datatypes first need to be specified as a datatype library. Every element in the schema has this attribute, and if set, the element and any of its children will use the corresponding datatype library, unless its children specify something different. But a proper date will: An Introduction to RELAX NG.