zwol: stylized sketch of a face in profile (Default)
[personal profile] zwol
exactly which circle of browser compatibility hell will I be doomed to if I make up my own DIV attributes in a (machine generated) HTML page for the benefit of the Javascript program inside? I mean, like, <div id="foo" xprev="bar" xnext="quux"> instead of having on-the-side associative arrays. (Does Javascript even have associative arrays? It must, but all the documentation I can find online fails to inform, and fails to inspire confidence in what little information it does provide.)

Date: 2007-04-25 03:17 am (UTC)
From: [identity profile] zwol.livejournal.com
I found the {'one':1, 'two':2} syntax this morning. It's great because it's exactly the same syntax that Python's built-in dictionary serializer uses. No tedious generator to write!

Date: 2007-04-25 03:26 am (UTC)

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819 202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 12th, 2026 10:30 am
Powered by Dreamwidth Studios