2 ms·
json? ajax? The solution I posed was a simple inline javascript at the end of the html. The js data is generated at the same time as the html output. The IDs a
by axod 18y ago
json? ajax?
The solution I posed was a simple inline javascript at the end of the html. The js data is generated at the same time as the html output. The IDs all match, and are used once.
I've never seen any issues with encoding in js, so I'm not sure what you mean about french text, regexps...
- lhorie 18y agoWhat I'm saying is that once a site becomes more complicated (e.g. if the data comes after page load, in an ajaxed popup, for example), that simple solution becomes harder to maintain (or to implement without wasting bandwidth). To be fair, if you don't work on complex web apps, you'll probably never run into this. >> I've never seen any issues with encoding in js, so I'm not sure what you mean about french text, regexps... Good for you. I hope you never see these types of bugs, they are nasty to troubleshoot.