Kim Schulz <kim@schulz.dk> writes:
[PHP]
> $suggestions[$word]=array("ord","ord2","ord3"..."ordN");
....
> hvordan representerer jeg dem lettest i javascript hvis jeg vil dette?
Objekt-literaler er nok den nemmeste metode:
var suggestions = {"word1" : ["ord","ord2","ord3",...,"ordN"],
"word2" : [ ... ],
...};
Se <URL:
http://www.crockford.com/JSON/js.html>
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:
http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'