Browsing articles from "October, 2011"
Oct
14
2011
14
2011
Dojo // JavaScript
Coast to Coast with dojo.string.substitute
Have you ever written JavaScript that injects values into the middle of a string? Did you slice, substring, and RegExp your way to victory? You probably did. Unless great care is taken, this approach is fragile and produces code that is almost certainly difficult to read. Dojo provides help for this problem via an incredibly convenient utility for performing parametrized substitutions on a string, dojo.string.substitute.
Recent Comments
- Randy Hudson on Lessons in Widgetry: Binding Property Values to DOM Nodes in Templates
- James on A Simple Dojo DataGrid Example (or so close, yet wide right…)
- Deepesh on A Simple Dojo DataGrid Example (or so close, yet wide right…)
- RS on A Simple Dojo DataGrid Example (or so close, yet wide right…)
- Dan Lee on From Springfield to Stuttgart, an Introduction to i18n with Dojo


An article by

